Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Win7 - Get UNC from Drive Letter?
Message
De
31/10/2013 15:39:52
 
 
À
31/10/2013 13:20:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Divers
Thread ID:
01555821
Message ID:
01587028
Vues:
56
>>Does anyone have a function that returns the UNC name ( e.g. \\ServerName\ShareName ) from a mapped drive letter e.g. F: or Z:?
>>
>>I've tried both the API and WSH versions of Sergey's functions at http://www.berezniker.com/content/pages/visual-foxpro/returning-unc-path-associated-local-device . Neither of them appear to work on Win7, they both return the empty string for network and local drives.
>>
>>I'm running as an admin on my Win7 dev box, with VFP9 SP2 started as an administrator.
>>
>>UPDATE: never mind, both versions work. I think the issue is running VFP9 SP2 as an administrator; that is in effect a new local session with different drive mappings so the network mapped drive is not present in that new session.
>
>Hi Al,
>
>Just saw your message. In case you still need it I enclose it with a few other wsh related functions.
>
>Alex

Thanks, Alex - I was able to do what I needed to do at that time.
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform