WiseScript Editor Reference
108
WiseScript Actions
z
New File Name
Enter the new file name or directory name (examples: picture2.jpg or Photos).
Rename File or Directory in SVS Layer
This SVS script action renames a file or directory a virtual software layer. This can be an
existing file or directory, or a file or directory that the WiseScript installs. The file must
not be busy.
Note
Use this action on a deactivated SVS layer only.
To complete the dialog box
z
Layer GUID
Enter the layer’s GUID (globally unique identifier) or a variable that represents the
layer’s GUID. If you enter the layer’s GUID, do not include the { } brackets.
For information on creating a variable for a layer’s GUID, see
Create SVS Layer
on
page 65 and
Find SVS Layer GUID
on page 84.
z
Source path
Enter the full path to the existing directory and file in the virtual software layer. You
can use SVS variables or WiseScript variables that resolve to a valid SVS path.
See
SVS Variables
on page 161.
z
Destination path
Enter the new path, or file name, or both. Any new path you enter must exist in the
layer. You can use SVS variables or WiseScript variables that resolve to a valid SVS
path.
See
SVS Variables
on page 161.
z
Return variable
(Optional.) Enter a name for the return variable. When this script action runs
successfully, either 0 or 1 is placed in this variable.
See also:
About SVS Script Actions
on page 39
Rename SVS Layer
This SVS script action renames a virtual software layer that is installed. The layer must
be deactivated before it can be renamed.
To complete the dialog box
z
Layer GUID
Enter the layer’s GUID (globally unique identifier) or a variable that represents the
layer’s GUID. If you enter the layer’s GUID, do not include the { } brackets.
For information on creating a variable for a layer’s GUID, see
Create SVS Layer
on
page 65 and
Find SVS Layer GUID
on page 84.