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

Network Class:  IsUNC

Previous  Top  Next  


Prototype: (String pPath), Byte

 

pPathPath to check if it is a UNC path or not

 

ReturnsReturns true or false depending on if the pPath path starts with '\\' or not

 

This method is very simple as it just checks if the path is more than two characters and if those two characters are '\\'  If that is the case the method will return true, otherwise it will return false.

 

Example:

ITN  ITNetworkClass

P  String(255)

Code

P = 'C:\'

If ITN.IsUNC(P)

  Message(Clip(P) & ' is a UNC path')

Else

  Message(Clip(P) & ' is NOT a UNC path')

End

 

 

See also:

ConvertToUNC

IsLocalShare

GetLocalNetworkFileName

GetUNCFileName

 

 

 



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