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";
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.
- Brian W. Kernighan
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
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 10:27 AM.
Bookmarks