Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mapping a drive letter to a UNC name
Message
 
À
06/09/1996 11:02:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00007356
Message ID:
00007412
Vues:
33
>Is it possible, from the main.prg, to map a drive letter to a path named "\\server\c\test" ?

UNC's are treated just like other paths so you can simply add it to your
SET PATH string like this:
  temp=SET("PATH")+"; \\server\croot\wconnect\wwdemo"
  set path to &temp
Of course you can also do stuff like:

USE \\server\croot\wconnect\wwdemo\tt_cust

directly. No need to map a drive...

+++ Rick ---
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform