Path

Description

The Path class is used to work with character variables that contain information about a path to a file or a directory.

Static class methods inherited from IPath

  Method name Brief description
The ChangeExtension method returns a string that contains changed information of a path.
The Combine method combines two strings of a path.
The GetDirectoryName method returns information about a directory for a specified path.
The GetExtension method returns an extension of a specified path string.
The GetFileName method returns a file name and an extension of a specified path string.
The GetFileNameWithoutExtension method returns a file name of a specified path string without an extension.
The GetFullPath method returns an absolute path for a specified path string.
The GetPathRoot method returns a path to a root directory.
The GetTempFileName method creates a temporary file with a unique name and returns an absolute path to it.
The GetTempPath method returns a path to a temporary directory for a current system user.
The HasExtension method returns True if a path includes a file name extension.
The IsPathRooted method returns whether an absolute path to a file is present in a specified string.

See also:

IO Assembly Classes