By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,130 Members | 1,365 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,130 IT Pros & Developers. It's quick & easy.

Making a folder

P: 57
How can i make a folder with a name which i write in cin >> filename; ?????
Jul 13 '06 #1
Share this Question
Share on Google+
1 Reply


P: 35
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.