|
CSplitpath:SetPath
The SetPath method assigns a path name to
the CSplitpath object and splits it into its components. The
Split method may also be used to split a path.
Syntax
|
bSuccess = CSplitpath:SetPath( sPath )
|
|
On success,
this method returns
true.
On failure,
this method returns
false.
Example
Suppose a file exists with a full path named
sPath. The following script assigns the path name and splits
it into components:
|
S = new_splitpath()
|
|
|
S:SetPath(sPath)
|
|
|
...
|
|
|
S:delete()
|
|
Related Topics
CSplitpath class
Mira Pro x64 Script User's Guide, v.8.76 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.
|