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() |
|
Suppose a file exists with a full path named sPath. The following script fragment 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 |