>I have a need to identify the server name that an executable is running from. I know I can get the path of the executable, but that contains the logical drive letter, not the name of the server. Is there a Windows API call or VFP SYS() function for this.
>
>Many thanks,
Try
oFso = CreateObject("Scripting.FileSystemObject")
lcDriveLetter = LEFT(_VFP.ServerName,1)
oDrv = oFso.GetDrive(lcDriveLetter)
? oDrv.ShareName
--sb--