>I'm sitting here in front of a VFP training class telling them just how smart everyone out here is sooooooooo....
>
>How do you get a UNC path (\\ServerName\directory\file) from a absolute path like you get back from GetFile()?
>
>Come on now...don't make me look bad here...I'm counting on all you!
There are several ways to do this:
(1) Use the Wscript.Network object of the WSH to translate the drive letter from the path you received from GetFile()
(2) Use the Scripting.FileSystem object from the WSH to do the same thing by examining it's Drives collection
(3) Use the Windows API WNetGetConnection() call to translate the UNC into a path.