Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check for a file
Message
From
11/10/1998 19:47:56
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00144148
Message ID:
00145785
Views:
30
Not all the time... it has to be on to use FSIZE for reading the number of bytes in a file.

>Hi John,
>
>Most - if not all of the time - Set Compatible should be Off anyway.
>
>
>
>>>Hi John,
>>>
>>>>I am trying to verify if a file is present on the disk. I have tried FILE() but it also checks along the path and returns true if it finds the file anywhere. If I have a full file name how can I verify that it is present on the disk?
>>>
>>>If you pass the full path and name to FILE() it should not look anywhere else. Alternatively you can use ADIR():
>>>
>>>LOCAL laFile[1]
>>>IF ADIR(laFile,"MyFile") > 0
>>>   * File does exist
>>>ENDIF
>>>Christof
>>
>>Thanks for the reply Christof. I looked in the help file for FILE() and found that it will ignore the drive and path if set compatable is off...
>>
>>Thanks
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform