Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Directory() Function
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00628144
Message ID:
00628168
Views:
17
>When I use the DIRECTORY() function to check the existence of a DIRECTORY (so I'll know whether or not to create it), the results are not dependable. Any documentation on errors with this function? If not, what else can I use to check the existence of a directory?


You could use WSH with something like this:
lparameters tFolder
local oFSO
oFSO = CreateObject("Scripting.FileSystemObject")
return oFSO.FolderExists(tFolder)
HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform