Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I am trying to create a program in

Status
Not open for further replies.

lix

Programmer
Jul 28, 2003
5
US
I am trying to create a program in C++ that would create aa directory in the current path, then copy a file to this path and attach a time stamp on the file name. How is the function: extern PACKAGE System::AnsiString __fastcall GetCurrentDir();
and the function extern PACKAGE bool __fastcall CreateDir(const System::AnsiString Dir);

For some reason when I use the mkdir function, it does not place my folder name in the right path

Thank you,
Lix






 
Yeah, you probably want to use the API function CreateDirectoryEx instead of using the CreateDir just because it allows for time stamp and more.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top