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

Network Class:  GetLocalNetworkFileName

Previous  Top  Next  


Prototype: (String pFile),String

 

pFileFilename of a local or shared/mapped file

 

ReturnsUNC for a local or shared file

 

This method takes a filename that includes a drive letter, local or mapped, such as "F:\Clarion6\Bin\C60HELP.HLP" and returns the correctly formed UNC name for the file, i.e. "\\ComputerName\DriveShareName\Clarion6\Bin\C60HELP.HLP" 

Note that this method will convert any filename to a UNC filename, also filenames on the local computer.  This method has two other names, ConvertToUNC and GetUNCFileName.  They both call GetLocalNetworkFileName

 

Example:

ITN  ITNetworkClass

Fn   String(1024)

UNC  String(1024)

Code

If FileDialog('Choose File to View',Fn,'Text|*.TXT|Source|*.CLW',FILE:LongName)

  UNC = ITN.GetLocalNetworkFileName(Fn)

  Message('File Name: ' & Fn & '|UNC Name:  ' & UNC)

End

 

See also:

ConvertToUNC

GetUNCFileName

GetNetworkFileName

EnumLocalShares

ComputerName

LocalResources

 

 

 



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