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

Network Class:  GetUNCFileName

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 calls 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.GetUNCFileName(Fn)

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

End

 

See also:

ConvertToUNC

GetNetworkFileName

GetLocalNetworkFileName

EnumLocalShares

ComputerName

LocalResources

 

 

 



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