CSplitpath Class Description
The CSplitpath class is used to manipulate file paths. Use this class to replace elements of the path such as the file name, directory, file extension, etc.
A complete path name consists of the following components:
Machine name
Drive Name
Directory Name
File Name
Extension
The combination of machine name, drive name, and directory name is called the "folder".
Construction |
Object = new_splitpath() Object = CSplitpath:new() |
Destruction |
Object:delete() |
This function is normally used to create a new CSplitpath object as an alternative to the class-based new method.
Creates a new instance of the CSplitpath class. |
Creates a new instance of the CSplitpath class. |
|
Deletes the instance of the CSplitpath object and deletes its image from memory. |
Returns the directory name. |
|
Returns the drive name. |
|
Returns the extension with a preceding period, as '.ext'. |
|
Returns the extension as "ext". |
|
Returns the file name without its extension. |
|
Returns the filename + extension. |
|
Returns the machine name. |
|
Returns the machine name + drive + directory with a trailing '\'. |
|
Returns the machine name + drive + directory without a trailing '\'. |
|
Sets the directory name. |
|
Sets the drive name. |
|
Sets the extension. |
|
Sets the filename. |
|
Sets the filename + extension. |
|
Sets the folder: machine name + drive + directory. |
|
Sets the machine name. |
|
Sets the full path but does not split it into components. |
|
Appends a subdirectory to the path. |
Merge the components into a new path. |
|
Initialize the CSplitpath object with a pathname and split it into components. |
|
Split a specified path into its components. |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.