Detecting C: or D:
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/02/2005 at 06:50, xxxxxxxx wrote:
User Information:
Cinema 4D Version:Â Â Â 8.027Â
Platform:   Windows ;  Â
Language(s) :Â Â Â Â C++Â ;---------
hi i have a problem on some machines to detect if harddiskdrive (on some machines d:) exist. this directories were selected with a fileselector dialog usingFilename fnDir; if (fnDir.FileSelect(FSTYPE_ANYTHING, GE_DIRECTORY)) { ... }
TRUE was returned and fnDir contents 'c:'
i tried the following but nothing worked safe:
1. Tried
BrowseFiles *bf = BrowseFiles::Alloc(); bf->Init(fnDir, FALSE); bf->IsDir();
usually it returns TRUE for but on some machines (windows xp, same C4D version, same configuration of preferences, ...) it returns FALSE
so i tried
2. usingGeFExist(fnDir,TRUE)
and i saw the same.
does anybody know what could be the reason for that behaviour?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/02/2005 at 12:59, xxxxxxxx wrote:
I don't know what could cause this. However, a foolproof way to detect whether a directory exists and is writable would be to create a small dummy file and then delete it immediately.