Hi everyone.
I seem to remember someone having trouble with the DIRECTORY() fuction not working sometimes. I'd like to find out what the circumstances are. I use it in a function to determine whether a folder exists on the client machine. It works fine for all users except one. He is on Windows 2000. The folder is the Windows System folder. I first make a call to a function named GetWindowsSystemFolder, which uses a Windows api call. This is only one of the folders I check. It is a generic routine. Then code that checks for the folder runs:
IF !DIRECTORY(lcSnk)
MD (lcSnk)
ENDIF
The varialbe lcSnk represents a folder that needs to be sychronized. lcSnk is first set to the value returned by the other function. In the error file it shows the correct windows system32 folder in that variable. Yet DIRECTORY() returns False! And so, my program attempts to create the system32 folder and the user gets an error informing him that there is already a folder with that name.
The techies have been banging their heads against a wall trying to figure out what's different about this users machine compared to the other users who have no problem.
Does anyone know anything that may enlighten them (and me)?
Thanks,
Dana
Where's the damned Any Key?...too late