-
December 15th, 2012, 08:01 AM
#1
Presence of a folder in a Drive
Hi,
using C++ how can i check the presence of a folder in a drive.
The path of the folder is available in a std::string like std::string path = "C:\\TestFolder";
Please help.
Thanks
Dave
-
December 15th, 2012, 08:11 AM
#2
Re: Presence of a folder in a Drive
-
December 15th, 2012, 08:13 AM
#3
Re: Presence of a folder in a Drive
Originally Posted by Dave1024
using C++ how can i check the presence of a folder in a drive.
The path of the folder is available in a std::string like std::string path = "C:\\TestFolder";
If you are looking for a cross-platform way to do this, have a look at the Boost Filesystem library.
Cheers, D Drmmr
Please put [code][/code] tags around your code to preserve indentation and make it more readable.
As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky
-
December 15th, 2012, 09:36 AM
#4
Re: Presence of a folder in a Drive
could you say which mechanisam is more faster and reason behind these mechanisam for copy a folder from one location to other?
1. I am using 'xcopy' dos command
2. I am using file read and write method in <stdio.h>
Will cycle stealing DMA had any role in my first choice ?
Thanks
Dave
Last edited by Dave1024; December 15th, 2012 at 11:27 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|