468,469 Members | 2,320 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,469 developers. It's quick & easy.

Making a folder

57
How can i make a folder with a name which i write in cin >> filename; ?????
Jul 13 '06 #1
1 3023
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.
Jul 13 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Pavel | last post: by
reply views Thread by Andy Sutorius | last post: by
4 posts views Thread by Ernesto | last post: by
1 post views Thread by keithb | last post: by
3 posts views Thread by Gurpreet Singh | last post: by
reply views Thread by Tim Golden | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by kmladenovski | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.