 |
 |
Shell Lightweight Utility APIs -- Path Functions ..msdn Add comment |
 |
|
PathBuildRoot
|
|
Creates a root path from a given drive number. |
|
 |
 |
 |
|
PathCombine
|
|
Concatenates two strings that represent properly formed paths into one path; also concatenates any relative path elements. |
|
 |
 |
 |
|
PathCompactPathEx
|
|
Truncates a path to fit within a certain number of characters by replacing path components with ellipses. |
|
 |
 |
 |
|
PathFileExists
|
|
Determines whether a path to a file system object such as a file or directory is valid. |
|
 |
 |
 |
|
PathFindExtension
|
|
Searches a path for an extension. |
|
 |
 |
 |
|
PathFindFileName
|
|
Searches a path for a file name. |
|
 |
 |
 |
|
PathFindOnPath
|
|
Searches for a file. |
|
 |
 |
 |
|
PathGetDriveNumber
|
|
Searches a path for a drive letter within the range of "A" to "Z" and returns the corresponding drive number. |
|
 |
 |
 |
|
PathGetShortPath
|
|
Retrieves the short path form of a specified input path.
|
|
 |
 |
 |
|
PathIsDirectory
|
|
Verifies that a path is a valid directory. |
|
 |
 |
 |
|
PathIsNetworkPath
|
|
Determines whether a path string represents a network resource. |
|
 |
 |
 |
|
PathIsRelative
|
|
Searches a path and determines if it is relative. |
|
 |
 |
 |
|
PathIsRoot
|
|
Parses a path to determine if it is a directory root. |
|
 |
 |
 |
|
PathIsURL
|
|
Tests a given string to determine if it conforms to a valid URL format. |
|
 |
 |
 |
|
PathRenameExtension
|
|
Replaces the extension of a file name with a new extension. |
|
 |
 |
 |
|
PathSearchAndQualify
|
|
Determines if a given path is correctly formatted and fully qualified. |
|
 |
 |
 |
|
UrlEscape
|
|
Converts characters in a URL that might be altered during transport across the Internet ("unsafe" characters) into their corresponding escape sequences. |
|
 |
 |
 |
|
UrlGetPart
|
|
Accepts a URL string and returns a specified part of that URL. |
|
 |
 |
 |
|
UrlHash
|
|
Hashes a URL string. |
|
 |
 |
 |
|
UrlUnescape
|
|
Converts escape sequences back into ordinary characters. |
|
 |
 |
 |
 |
| Code examples: |
 |
|
|
 |
|
|