What do you need this for?
If you need it for the creation of a directory you can call CreateDirectory API.If the directory exists, I think GetLastError will return ERROR_ALREADY_EXISTS.
Hope this helps, s-)
Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
I need to write a file on a disc and I don't want the name of the file to be the same with the name of an existing directory. So if the directory exists your method will help, but if the directory doesn't exist, a new directory will be created, wich I DON'T WANT !!! (ce mail ai?)
The you can use the GetFileAttributes API. If the function fails because the specified file or directory does not exists, will return 0xffffffff.(burtani@operamail.com, tu?)
Hope this helps, s-)
Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.