Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Quickest way to determine if file is local or on network
Message
From
19/05/2006 13:37:58
 
 
To
19/05/2006 13:35:07
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01123634
Message ID:
01123635
Views:
22
This message has been marked as a message which has helped to the initial question of the thread.
>All,
>
>What is the quickest way to determine whether a particular file is on the network or on the local disk.
>
>I've got the following situation.
>
>I'm using a FASTSTART utility that copies application files to the users application data folder, and start up from there.
>
>This goes well as long as the user does not have a roaming profile. Then this folder is on the network, causing massive network traffic. Also, most likely the TEMP folder is also on the network.
>
>I'm not onsite and have no authority to have anything to say about the configuration of the workstation. Therefore I want to be able to warn the users that they are running our software in a non-optimal way.

You could extract the drive name from the file name and use DRIVETYPE().
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform