|
Previous Top Next |
Prototype: | (String pFile), String |
This method returns the UNC name for a remote file. It does NOT return the UNC filename for a local file. Use GetLocalNetworkFileName for that purpose.
Example:
MyProc Proc
P String(255)
ITN ITNetworkClass
Code
P = 'Z:\somepath\somefile.txt'
P = ITN.GetNetworkFileName(P)
Message('P is now = ' & P)
If the Z: drive is mapped to "RemoteC" drive share on "RemotePC" computer, this would return "\\RemotePC\RemoteC\somepath\somefile.txt" If the Z: drive is a local drive, the GetNetworkFileName would return "Z:\somepath\somefile.txt"
See also: