DriveWorks Pro 17: IsValidPath [send feedback...]

IsValidPath

This function checks the specified path and ensures it is of a valid structure and syntax.

Syntax

IsValidPath([Path])

Where:

Path is the path to check

Examples

Rule

Meaning
IsValidPath("\hello\world\directory\file.txt")This function validates the path "\hello\world\directory\file.txt" and returns True as it is structurally and syntactically valid.

Example Outcomes

PathOutcome
"\hello\world\directory\file.txt"True
"\\servername\directory"False
"\hello\world\"False
""False
"\dir:name\"False
"C:\dirname"False
"C:\dirname\file.txt"True

Table of Contents