Rename a specific file or folder within an existing TTK.

Syntax

Catalyst /CAT_RENAME TTKName:TTKName FileName:OldFileName RenameTo:NewFileName [/S] [ezLogFile:ezLogFile] [/write] [/open]

or

Catalyst /CAT_RENAME TTKName:TTKName FolderName:OldFolderName RenameTo:NewFolderName [/S] [ezLogFile:ezLogFile] [/write] [/open]

Parameters

/CAT_RENAME

Rename a File or Folder from an existing TTK

TTKName:FName

Filename of TTK.

FileName:OldFileName

Name of the file which should be renamed within the TTK file.

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

FolderName:OldFolderName

Name of the folder which should be renamed within the TTK file.

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

RenameTo:NewName

New name of the File or Folder that the resource should be renamed to.

/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 renamed.

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_RENAME TTKName:"MyProject.ttk" FileName:"\Online Help\SDK.chm" RenameTo:"SDKGuide.chm"

"%CatalystEXE%" /CAT_RENAME TTKName:"MyProject.ttk" FileName:"SetupUI_en.dll" RenameTo:"SetupUI_de.dll"

"%CatalystEXE%" /CAT_RENAME TTKName:"MyProject.ttk" FolderName:"\WWW" RenameTo:"OnlineWeb"

"%CatalystEXE%" /CAT_RENAME TTKName:"MyProject.ttk" FolderName:"en" /S RenameTo:"de"