Path

Path


Provides functions to locate and format path information.


Remarks

All members of Path are static. To access them, use the Path.* convention.

 Dim p As String
 p = Path.Combine(App.Path, "file.txt")
 

See Also

Project VBCorLib Overview

Public:

Properties:

NameDescription
 AltDirectorySeparatorChar (get)Returns the character code for the alternative directory separator character. 
 AltDirectorySeparatorString (get)Returns the string for the alternative directory separator character. 
 DirectorySeparatorChar (get)Returns the directory separator character for Windows. 
 DirectorySeparatorString (get)Returns the directory separator string for Windows. 
 InvalidPathChars (get)Returns an array of characters that are invalid in a Windows path string. 
 MaxPathLength (get)Returns the maximum length for a path. 
 PathSeparator (get)The character code used to separate strings in an environment variable. 
 PathSeparatorString (get)The string used to seperate strings in an environment variable. 
 VolumeSeparatorChar (get)The character code used to separate volume labels from path information. 
 VolumeSeparatorString (get)Returns the string version of the volume separator. 

Methods:

NameDescription
 ChangeExtensionReplaces the extension of a filename with a new extension. 
 CombineCombintes two paths into a single path. 
 GetDirectoryNameReturns the directory portion of a file path. 
 GetExtensionReturns the extension of a filename. 
 GetFileNameReturns the filename portion of the specified path. 
 GetFileNameWithoutExtensionReturns the filename portion of a path without the filename extension. 
 GetFullPathCreates a full path to the specified filename. 
 GetInvalidFileNameCharsReturns an array of invalid filename characters. 
 GetInvalidPathCharsReturns an array of invalid path characters. 
 GetPathRootReturns the root directory of the specified path. 
 GetTempFileNameReturns the filename for a temporary file. 
 GetTempPathReturns the path to the temporary folder for the current user. 
 HasExtensionReturns if a filename has an extension. 
 IsPathRootedReturns an indication if the path is rooted or not.