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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating folders/sub directories

Status
Not open for further replies.

Sherak

Programmer
Joined
Sep 1, 2003
Messages
83
Location
GB
I have a program which creates a series of files and I would like to sort these files into folders, is there a way I can get my program to create new folders in the current workign directory.

Thx in adv
 
AnsiString CurDir = GetCurrentDir();
AnsiString NewDir = CurDir + "\\NewDirectory";
CreateDir(NewDir);

Chris
 
Nice one, thanks a lot....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top