Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does Directory Exist
Message
From
29/11/2006 09:34:24
 
 
To
29/11/2006 07:27:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Miscellaneous
Thread ID:
01173197
Message ID:
01173244
Views:
6
Try
function DIR_EXIST
    lparameters cDirPath
    local temparray(1)
    return adir(temparray,cDirPath,'D') > 0
There is also
directory()
but under certain circumstances might full you.

HTH

>I've used the VFP FILE() function for years to determine if a file exist but I need a function that determines if a folder (directory) exist.
>
>Is there a simple way to determine if a folder exists?
>
>Thanks,
>Robert
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Previous
Reply
Map
View

Click here to load this message in the networking platform