Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Quickest way to determine if file is local or on network
Message
 
 
To
19/05/2006 13:52:48
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01123634
Message ID:
01123649
Views:
11
This message has been marked as the solution to the initial question of the thread.
Hi Walter,
IF EMPTY(JUSTDRIVE(lcFileName)) 
	IF UPPER(STREXTRACT(lcFileName, "\\", "\")) <> UPPER(GETENV("COMPUTERNAME"))
		? "NETWORK!"
	ELSE
		? "LOCAL"
	ENDIF
ELSE		
* ...
ENDIF
>
>Thanks (I should have checked the helpfile, duh)
>Just one difficulty. What if the file path is UNC ?
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform