CSplitpath:GetName
The GetName method returns the file name from a CSplitpath object. The name does not include the directory or file extension.
sName = CSplitpath:GetName() |
|
On success, this method returns a string containing the file name.
On failure, this method returns nil.
Suppose a file exists with a full path named sPath. The following script retrieves the folder component:
|
-- create a CSplitpath object |
|
-- Specify the path to be split |
|
-- assigns the file name component to sName |
|
-- when done with S, remove it from memory |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.