Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Directory function cannot find existing folder
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 7 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01105461
Message ID:
01105462
Views:
34
This message has been marked as the solution to the initial question of the thread.
Hi Dana,

See Re: Folder Exists Message #989106

>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
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform