Alexander
asked on
Verify a path ...
How to verify if a path is a valid path (a path that exist) ?
ASKER
Sorry but i dont want to check if a file exist in a path but only if the path exist. If one of those functions do that can you be more explicit ?
Thank you !
Thank you !
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok, thank you, but finally i've used the SetCurrentDirectory function, because i need to change too, if the directory exist !
Isn't this better?
System.IO.DirectoryInfo di = new System.IO.DirectoryInfo(st ringPath);
bValidFile = di.Exists;
System.IO.DirectoryInfo di = new System.IO.DirectoryInfo(st
bValidFile = di.Exists;
2) Call FindFirstFile (.., &a_win32finddata_struct)
// don't forget to call FindClose () on the returned handle,
// if it's not INVALID_HANDLE_VALUE
2) Call GetShortPathName (...)