CSplitpath:SetDrive
The SetDrive method sets the drive name component of the CSplitpath object. Use Merge to combine this component and the other components into a full path.
bSuccess = CSplitpath:SetDrive( sDir ) |
|
On success, this method returns true.
On failure, this method returns false.
Suppose a file exists with a full path named sPath. The following script creates a new path using a different drive named sNewDrive:
|
-- create a CSplitpath object |
|
-- set the starting path |
|
-- assign a new drive name |
|
-- combine the path components |
|
-- do something with the new path |
|
-- when done with S, remove it from memory |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.