Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG in VFP with FILE() function?
Message
From
19/10/2004 15:07:26
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00952700
Message ID:
00952753
Views:
4
Hi Mark,

in stead of IF FILE('myfile'), I often use IF ADIR(dummy,'myfile')>0

>The file: "C:\Program Files\Jasc Software Inc\Paint Shop Pro 9\Paint Shop Pro 9.exe" defnitely exists on my PC.
>
>This returns TRUE as expected:
>FILE("C:\Program Files\Jasc Software Inc\Paint Shop Pro 9\Paint Shop Pro 9.exe")
>
>This is the short file name for the file: "C:\PROGRA~1\JASCSO~1\PAINTS~2\PAINTS~1.EXE"
>When I try to RUN &cShortFileSpec, it works.
>If I do DIR "C:\PROGRA~1\JASCSO~1\PAINTS~2\PAINTS~1.EXE", it shows
>... but FILE("C:\PROGRA~1\JASCSO~1\PAINTS~2\PAINTS~1.EXE") returns FALSE!!!!! File is neither SYSTEM nor HIDDEN.
>
>WTF? Bug or not?
Previous
Reply
Map
View

Click here to load this message in the networking platform