Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DIRECTORY() Failing
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00446458
Message ID:
00446513
Views:
8
>Has anyone ran across the DIRECTORY() function failing. I am using it to see if a dir exists and if not I create it to keep my temporary files in and clean it up upon exit.
>
>I have 1 user that this command fails on. He is running NT and I have tested on and have several users running NT and 2000. DIRECTORY(pctemdir) fails saying the directory does not exist when in fact it does.
>
>If the directory does not exist I create it and this is where the error shows up. You cannot create a directory that is already there.
>

If there's a File with the same name as a Folder you check for, DIRECTORY() accurately reports the directory is not present, and you can't create a folder with the same name as a file, so that's the most likely error.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform