Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Local drive to UNC filename conversion
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Local drive to UNC filename conversion
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01540813
Message ID:
01540813
Vues:
72
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?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform