Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Local drive to UNC filename conversion
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01540813
Message ID:
01540819
Vues:
43
Thanks Sergey, will check that out.

>See if http://www.berezniker.com/content/pages/visual-foxpro/returning-unc-path-associated-local-device can help
>
>>I am using Andrew Coates GetUncPath function in an effort to compare the names of 2 selected files in order to determine if they are the same file. One file is selected in VFP using GetFile() and the other is opened by the user in QuickBooks.
>>
>>The GetFile-selected file is run thru GetUncPath and is stored in a foxpro table with server notation.
>>
>>The other file is opened by the user in QuickBooks. That opened company file name is available to Foxpro via a property on an activex control.
>>
>>When the second file name (the QB-selected file) is run thru GetUncPath on a user's workstation, the file name (95 chars long) still uses drive letter notation. C:\Users\Public\Documents\Intuit\...
>>
>>The GetUncPath function appears to see that that workstation is not "redirected" per Andrew's comments in the code.
>>
>>
>>* The device specified by lpLocalPath is not 
>>* redirected.
>>case lnResult = ERROR_NOT_CONNECTED
>>
>>
>>Any ideas?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform