Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Server Route
Message
 
 
À
26/09/2007 11:10:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01256922
Message ID:
01256928
Vues:
16
This message has been marked as the solution to the initial question of the thread.
You can use LocalDevice2UNC() function from http://www.berezniker.com/display/VFP/Returning+UNC+path+associated+with+a+local+device
lcFileName = "f:\employeephoto\picture001.jpg"
lcUncFileName = LocalDevice2UNC(LEFT(lcFileName,2)) + SUBSTR(lcFilename,3)
>
>When getting the route for a photo employee I do This :
>
>
>Thisform.TxtPhoto.Picture = getpic("")
>
>within the click event of a command button form, and save the complete route , even like the logical letter like this:
>
>f:\employeephoto\picture001.jpg
>
>And it´s Ok.
>
>But, how can I save the route like this (instead the logical letter, set the server.
>
>\\mycentralserver\employeephoto\picture001.jpg
>
>Because in differents pc's , people has the same logical letter (F:) defined for different servers and my program does not found the real route for employees pictures.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform