RC-WinTrans Command Line Tool

 

"RWTCmd.exe"

RC-WinTrans has a command line tool ("RWTCmd.exe") that provides a set of command line commands which can be called from the command prompt or, more commonly, from a batch process.

 

The command line tool is a small program which does not execute commands by itself.  The command line tool uses RC-WinTrans as an automation server and it is RC-WinTrans which actually executes the command.

 

 

Command Line Commands

For a list of the commands available from the command line, please refer to the "Commmand Line Commands" topic in the RC-WinTrans 9 application help.

 

The help for the command line can also be opened directly from RC-WinTrans' "Help" menu ("Command Line" command).

 

 

Performance: The "KeepAlive" Switch

RC-WinTrans is started and closed for each single command that is called via the command line tool. Calling a number of commands at once from a batch process slows the processing down considerably because the RC-WinTrans application is large and must be initialized each time.

 

We recommend using the "KeepAlive" command line switch with each executed command except for the last one.

 

 

/keepalive

/a

 

DESCRIPTION: keeps the RC-WinTrans server running after the execution of a command.  Without this switch, the RC-WinTrans application will shut down after the command has been processed.

 

 

Samples

RC-WinTrans comes with samples for using the command line tool in batch files and for using Windows scripting.

 

Batch File Samples

Directory: ...\samples\commandline\batch

Read-me file: ...\samples\commandline\ReadMe.htm

 

BATCH FILE

DESCRIPTION

1. "AddLanguage.bat"

Adds a new target language to a translation project.

2. "CreateProject.bat"

Creates a new translation project and adds files (to be translated) to the project.

3. "UpdateAndWrite.bat"

a.

Verifies that a translation project is up-to-date (no source files have changed).  The project will be updated if there are source files that are not up-to-date.

b.

The target files of the translation project will be written (created).

4. "WriteTargetFiles.bat"

Writes translated target files with the name and location specified for the files in the translation project.

5. "WriteTgtToDir.bat"

Writes a translated target file with a name and directory specified in the batch file.

 

 

Extendibility

The command line interface (command line commands) can be extended with Visual Basic for Applications.  If you require an additional command line command, please contact Schaudin.com for information on how to realize it using VBA.

 

^ Top ^