Re: [Dev-C++] how to check that a directory path exists?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Alfred P. R. <al...@ya...> - 2005-02-03 17:56:15
|
Use getcwd to save the current working folder, then test the return value of chdir to see if the folder in question was actually entered into. I fought this for a while trying to use different methods that used stat, however only chdir appeared to work correctly. getcwd and chdir are declared in direct.h and the usage can be found at the Microsoft Support site. Guillermo Gutierrez <ggu...@ma...> wrote: hello, I have not had too much luck finding a way to verify whether a directory path exists without using the WIN32 API calls. I need to check for the existence of a two directories in two different drives to see which path exists. <snip> Alfred P. Reaud |