Delete a file or folder from an existing TTK file.

Syntax

Catalyst /CAT_DELETE TTKName:TTKName FileName:File_to_Delete [/S] [ezLogFile:ezLogFile] [/write] [/open]

or

Catalyst /CAT_DELETE TTKName:TTKName FolderName:Folder_to_Delete [/S] [ezLogFile:ezLogFile] [/write] [/open]

Parameters

/CAT_DELETE

Delete a File or Folder from an existing TTK

TTKName:FName

Filename of TTK.

FileName:File_to_Delete

Name of the file which should be deleted from the TTK file.

  • If no backslash appears in front of FileName, only the first file with that name is deleted.
  • If the backslash is used, only the filename with the exact path from the root will be deleted.

FolderName:Folder_to_Delete

Name of the folder which should be deleted from the TTK file.

  • If no backslash appears in front of FolderName, only the first folder with that name is deleted.
  • If the backslash is used, only the folder name with the exact path from the root will be deleted.

/S

Recurse all sub-folders.

If the exact pathname is not specified and /s used, then all files or folders with the specified name will be deleted.

ezLogFile:ezLogFile

The user can optionally specify a log file to which results of each Catalyst ezScript command are output.

If the log file is not specified by the user or is invalid, the default log file (ezScriptBatchLog.txt in the Public location) is used.

/write

The command line which has been processed by Catalyst will be written into the ezScript batch log file.

This will help to debug your command if something is not behaving as expected.

/open

Launches MS Notepad and displays the content of ezScript batch log when the command finishes.

Examples

"%CatalystEXE%" /CAT_DELETE TTKName:"MyProject.ttk" FileName:"\Application\Catalyst.exe"

"%CatalystEXE%" /CAT_DELETE TTKName:"MyProject.ttk" FileName:"Catalyst.exe"

"%CatalystEXE%" /CAT_DELETE TTKName:"MyProject.ttk" FolderName:"\WWW"

"%CatalystEXE%" /CAT_DELETE TTKName:"MyProject.ttk" FolderName:"de" /S