JCL Help:PathIsUNC

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Tests whether a path is a UNC path.


Pascal

 function PathIsUNC(const Path: string): Boolean;


Parameters

Parameters Description
const Path: string The path to test.


Return Value

If the supplied path is a UNC path the function returns True, otherwise it returns False.


Description

PathIsUNC tests whether or not the supplied path is a valid UNC path. That is, it tests whether the path is prepended with '\', and whether the machine and share components are valid, if present. Note that a machine is considered valid if it's constructed using characters from the set [a-z, A-Z, 0-9, -, _]. Other charactes, technically including the underscore, result in non-standard machine names which cannot be found on a network unless Microsoft DNS is in use (which is why PathIsUNC considers them as invalid and returns False for such paths).


See Also

PathIsDiskDevice PathIsAbsolute


About

Unit

JclFileUtils


Donator

Robert Marquardt


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page