|
![]() |
|||||||||||||||
|
home products solutions news downloads order support about us |
|
|||||||||||||||
Resource Tuner Console |
||||||||||||||||
|
||||||||||||||||
|
|
Get Started With RTC Usage
Resource Tuner Console (RTC) accepts input from a script file. It reads and executes scripts using the Windows Scripting Host engine. RTC uses VBScript as a general scripting language. RTC scripts have an .RTS (meaning Resource Tuner Script) extension. Script files are usually edited in any ASCII or Unicode plain text editor.
From the command prompt, type rtc.exe /F:ScriptName (including the full path, if any). Example: rtc.exe /F:"c:\temp\my_script.rts"
Create a .bat file and put rtc.exe /F:ScriptName in it. Have a look in the Resource Tuner Console directory for some .bat file examples.
Syntax RTC [options] /F:ScriptName Options and switches:
Example: Parameters /F:ScriptName Example: Options and Switches /S /plhdXX="Value" plhd - The reserved word (meaning "placeholder"). Required! Placeholder Usage Guidelines You can use multiple placeholders in your scripts. You can write one generic script and just invoke it with different parameters. Every placeholder in the script body must be enclosed by % signs. Example: rtc /L /plhd_bool="True" /plhd_str="Hello!" /F:my_script.rts During script execution, the following lines in the script "my_script.rts":
will be replaced with:
RTC Scripts There are no particular requirements except that every script must contain the Main procedure, enclosed by Sub and End Sub statements. Inside the Main procedure there can be any number of statements. A familiarity with VBScript helps with reading and writing the scripts. Example:
Comments can be placed in the script by typing a single quotation mark at the beginning of a line. The script engine ignores all comments. For example:
A description of the RTC script format and sample scripts can be found in the RTC Scripting Language Reference within the Resource Tuner Console package. Please take a few moments to review the help, you will better familiarize yourself with the program and learn more about all the features available. Download a RTC Scripting Language Reference Help File (.CHM) 125 kb To give you an idea of how this all works, we made few sample scripts and test applications. Once installed Resorce Tuner Console, you will find the sample scripts in the directory where RTC has been installed. The setup program will also create the "..\Demo" folder under the RTC folder, with the test applications in the "..\Demo\Src" folder. Exit codes 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, and 3 if the script failed, or a syntax error occurred. For example:
Examples Example 1 The following command runs the script and creates a log file named rtc.log by default in the same directory the program is located: RTC /L /F:"C:\RTC Folder\my test script.rts" As shown in the example above, filenames that include spaces must be enclosed in quotes. In response, Resource Tuner Console displays in details all events and actions taken during the editing process. Any syntax errors and/or errors encountered during compilation will be reported for you to correct. Example 2 The following command silently runs the script and creates or appends a log to the existing log file named my logfile.log in the user defined directory: RTC /S /L:"D:\logs\my logfile.log" /A /F:my_script.rts As shown in the example above, filenames that include spaces must be enclosed in quotes. In response, Resource Tuner Console displays no events on the console screen.
Start tuning your applications now Resource Tuner Console offers exceptional value for money and delivers functionality that reaches far beyond its price tag. Discover how you and your organization can benefit from this exciting program. Start tuning your applications today!
|
|||||||||||||||