www.icetips.com  Icetips Utilities Documentation 11/30/2010    

Network Class:  GetNetworkFileName

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:

GetComputerName

GetLocalNetworkFileName

GetNetworkDriveName

 

 

 



Direct link to this page: http://www.icetips.com/manuals/utilities/getnetworkfilename_network.htm