Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Local drive to UNC filename conversion
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01540813
Message ID:
01540819
Views:
42
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?
Previous
Reply
Map
View

Click here to load this message in the networking platform