CSplitpath:SetName
The SetName method sets the machine name component of the CSplitpath object. Use Merge to combine this component and the other components into a full path.
bSuccess = CSplitpath:SetName( sMachineName ) where |
|
sMachineName is the new machine name.
bSuccess is the returned success code. On success it is true, otherwise false.
Suppose a file exists with a full path named sPath. The following script creates a new path using a different machine name, sNewName:
|
-- create a CSplitpath object for path sPath |
|
-- assign a new machine name, "MyMachine" |
|
-- combine the name into the path |