Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check if a directory exists?
Message
 
To
18/10/2002 19:12:58
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00713114
Message ID:
00713119
Views:
15
>Is there a command/function that will check for:
>
>1. The existense of a specific directory (e.g. a directory named Upload)

IF DIRECTORY("Upload") ...

>2. Then if it exists, check and list the names of its subdirectories if any.

LOCAL myArray[1,5] && it will be resized by ADIR function
nDirCount = ADIR(myArray,"Upload","D")

Regards
Jose.
------------------
Jose Marcenaro
Tercer Planeta - Argentina
http://www.tercerplaneta.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform