Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Quickest way to determine if file is local or on network
Message
 
 
À
19/05/2006 13:52:48
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01123634
Message ID:
01123649
Vues:
13
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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform