Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to find UNC path to a file?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01232750
Message ID:
01232786
Vues:
15
>>>One of the solutions could be like this:
>>>oFSO = CREATEOBJECT("Scripting.FileSystemObject")
>>>
>>>lo= oFSO.GetFile(getfile())
>>>?lo.Drive.ShareName
>>
>>Yuri, first thank you for your help.
>>
>>Can you think why when I run your simple code (above), I get empty value of .ShareName? Could it be because I choose a file from my local drive?
>
>I do not get it: if you choose the file from the local drive, then what UNC you expect?

I was expecting to get something like
\\MyPcName\C$\MyFolder\
But I guess I was mistaken. I will try to test it on a system with a network drive.

Again, thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform