WiseScript Editor Reference
67
WiseScript Actions
z
File path
Enter the path and file name of the file to delete. 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
Delete File(s)
This action removes files from the destination computer.
You do not need to delete temp files if you use the Get Temporary Filename action to
create them because they are deleted automatically.
To complete the dialog box
z
Pathname
Specify the directories or files to delete. For example, %TEMP%\Application.dll or
%MAINDIR%\*.htm. You cannot perform wildcard deletions in the Windows,
System, or root directories.
Click Browse to display and select files in the current WiseScript that are installed
into the %MAINDIR%, %SYS32%, %SYS%, OR %FONTS% directories. When you
select a path in the Browse for File dialog box, you must select a file.
z
Include Sub-Directories
If you entered the path to a directory or used a wildcard, mark this to delete
matching files in all subdirectories as well.
z
Remove Directory Containing Files
If this is marked, and if the deletion leaves the directory empty, then the directory
is deleted also.
If you mark this check box and Include Sub-Directories, and you do not include a
file in the path, then all other empty subdirectories are deleted also. To prevent
deletion of the other subdirectories, add a trailing backslash to the path. For
example,
%MAINDIR%\Help\ deletes the Help directory if it is empty.
%MAINDIR%\Help deletes the Help directory if it is empty and also deletes all
other empty subdirectories of %MAINDIR%.
Delete SVS Layer
This SVS script action deletes an installed virtual software layer.