|
Previous Top Next |
Prototype: | (String pFile),String |
pFile | Filename of a local or shared/mapped file |
Returns | UNC 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: