Determines if the string is a URL.
Syntax
IsURL = SRP_Path("IsURL", Path)
Parameters
Parameter | Description |
---|---|
Path | A path without command line parameters. |
Returns
1 If the path is is a URL, 0 otherwise.
Remarks
The IsURL service determines if the path is a URL. The determination is by detecting a protocol at the beginning, such as "https://" or "file://". This will return 0 for any url that omits the protocol prefix.
Example
Result1 = SRP_Path("IsURL", "C:\Windows") Result2 = SRP_Path("IsURL", "file://C:\Windows") Result3 = SRP_Path("IsURL", "www.sprcs.com") Result4 = SRP_Path("IsURL", "http://www.sprcs.com")
Result1 will be 0. Result2 will be 1. Result3 will be 0. Result4 will be 1.
See Also
IsDirectory, IsDirectoryEmpty, IsNetworkPath, IsRelative, IsRoot, IsSameRoot, IsSystemFolder, IsUNC