Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detect if directory exists in NT
Message
From
18/06/1999 10:02:00
 
 
To
18/06/1999 09:56:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00231349
Message ID:
00231356
Views:
11
>In DOS/Win3/95/98 I could use the following command:
>
>if file('C:\payroll\nul') to detect if the payroll directory exists. This does not work in NT. Any ideas how to detect if a directory exists in NT? Thanks.
If ADir(ladir, 'C:\Payroll\', 'D') > 0
    * Directory exists
Else
    * Directory does not exist
EndIf
After that, you might want to release ladir if you don't need it anymore.
Sylvain Demers
Previous
Reply
Map
View

Click here to load this message in the networking platform