Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The file( ) function and Windows NT Workstation
Message
From
11/01/1999 17:58:55
 
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00174822
Message ID:
00174891
Views:
27
>Hi everybody,
>
>I’am having a problem and I’m seeking some help. Here is the problem :
>
>Using Foxpro 2.6 for Windows, I’m testing the presence of a directory using the file( ) function, like this :
>
>
if file(‘c:\nul’)
>	? "Directory C:\ exist"
>else
>	? "Directory C:\ does’nt exist"
>endif
>
>It works on Windows 95, but it does'nt on WIndows NT Workstation. The file( ) function with a directory passed as parameters seems to always return false.
>
>I know that the file system is different in Windows NT Workstation. Can somebody help me to overcome this problem.
>
>tia

The nul file isn't defined in all OSs. To test if a directory is valid in 2.6 try to create a temporary file there (eg use FCREATE()) and test the response.
Previous
Reply
Map
View

Click here to load this message in the networking platform