Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Slow detection of absent UNC
Message
From
16/11/2007 18:57:02
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01269426
Message ID:
01269590
Views:
19
>When a built-in function like DIRECTORY(), FILE() or FCREATE() is passed a UNC-path that does not (no longer) exist, it takes a very long time to tell you that. Is there an API function that can tell this much quicker?

Hi Peter

I don't know whether this works with UNC Paths but you can try. I too found this problem long ago and after that started using DISKSPACE(). This returns a -1 immediately if the path is not found and the DiskSize if found. No waiting. The reply is instant.

Try it and see.

Bernard
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform