Making a folder

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kasya
    New Member
    • Jun 2006
    • 57

    #1

    Making a folder

    How can i make a folder with a name which i write in cin >> filename; ?????
  • Ashish_CPP
    New Member
    • Jul 2006
    • 35

    #2
    Originally posted by Kasya
    How can i make a folder with a name which i write in cin >> filename; ?????

    Hi,
    You will have to use system( ); command to create a folder on a harddisk. This system( ); function will work on VC++ console application. The argument passed should be like this - system("MKDIR C:\\Folder_name ");
    where; MKDIR is a console appl command. The above command will create the folder in C drive.
    The path & the folder name can be got from the user through cin command.

    Comment

    Working...