CSplitpath:GetName
The GetName method returns the machine name from a CSplitpath object.
sMachineName = CSplitpath:GetName() where |
|
sMachineName is a string containing the machine name. On failure, nil is returned.
Suppose a file exists with a full path named sPath. The following script retrieves the file name:
|
-- create a CSplitpath object for path sPath |
|
-- returns the machine name component |