Start /wait rtc.exe /F:"c:\temp\my_script.rts"Įcho ERROR: Script file could not be openedĮcho ERROR: Script file name not specified Resource Tuner Console will return an exit code of 0 if the script was successful, 1 if the command line parameters were invalid, 2 if the script file could not be opened, 3 if the script failed, or a syntax error occurred, 4 if the script file name wasn't specified, and 5 if the script file wasn't off Rtc /L /plhd_bool="True" /plhd_str="Hello!" /plhd01="10" /F:my_script.rtsĭuring script execution, the following lines. Every placeholder in the script body must be enclosed by % signs. Just invoke it with different parameters. You can use multiple placeholders in your scripts. Value - Any value you wish to pass into the script.
Plhd - The reserved word (meaning "placeholder"). Instructs the program to find a specified placeholder plhdXX within your script and replace it with the Value, where: If the /E parameter is omitted, RTC outputs messages in either English, German, Spanish, Dutch, Swedish, Finnish, French, Italian, Japanese, Portuguese, Russian, or Polish, depending upon the user's locale. Instructs the program to always use English for its output. If the /A parameter is omitted, the program will overwrite the existing log file. Instructs the program to append a log to the existing log file. If the /L parameter is omitted, the program will not output to file.Īppend Log. If the LogName argument is omitted, the program will use the default RTC.log name and creates a log file in the same directory
If you suspect a scriptĭoes not produce the desired results the log file will tell you every little detail. The program to create a log file detailing all events and actions taken during the editing process. Specifies the name of a log file (including the full path, if any) and causes No events will be displayed on the screen. If a file name and/or pathnames contain a space, they must be enclosed in double quotes. Script file under the same directory the program is located if this parameter does not contain a fully qualified pathname. By default, the program expects to find the Sample Scripts Step by Step Guide To Using RTC Scripts Have a look in there for more batch file examples. Once installed Resorce Tuner Console, you will find the Demo folder in the directory where RTC hasīeen installed. bat file and put rtc.exe /F:ScriptName in it. Invoking the program from the command promptįrom the command prompt, type rtc.exe /F:ScriptName (including the full path, if any).Įxample: rtc.exe /F:"c:\temp\my_script.rts"Ĭreate a. Resource Tuner Console will go through the input path of the script, edit the file's resources, and save the modified file to the destination location. The user specifies the file names and paths to source and destination locations and starts up the tool from the batch file. For greater details, see The Illustrated Step by Step Guide To Using RTC Scripts. Use these examples as templates for your own scripts. The user writes a script for the resource editing operations, following the requirements of VBScript. Use of Resource Tuner Console typically includes the following steps: Sample scripts illustrated the main features can be found within the Resource Tuner Console package. To give you an idea of how this all works, we tried to cover all possible needs and made a dozen of scripts and test applications. Script files are usually edited in any ASCII text editor. RTS (meaning Resource Tuner Script) extension. RTC uses VBScript as a default scripting language. It reads and executes scripts using the Windows Scripting Host engine. Resource Tuner Console (RTC) accepts input from a script file. If you need a visual resource editor with GUI, Resource Tuner GUI is the right product for you. It's a scriptable program runnable from the console, and is intended to be used from the batch (.bat) files. Resource Tuner Console is a command-line tool.