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.
case lnResult = ERROR_NOT_CONNECTED
Any ideas?