Generating code through a batch file (ACS)
To generate code through a batch file, you create a Comfile to define the generation, and then use the Shadowacs command to generate code using that Comfile. Tell me more...
To create a comfile that defines the generation:
1. Using ACS, set up the generation as required through the Launch ACS/TDK dialog.
2. In the Launch Options box of the Launch ACS/TDK dialog, type the following text:
-DROP_COMFILE:<path and name of Comfile>.
Where <path and name of Comfile> is the path and name of the Comfile you want to create, for example, C:\Comfiles\MyComfile.drp.
3. Click the Save and Launch button.
ACS creates the Comfile and closes the Launch ACS/TDK dialog.
4. On the ACS/TDK Control tab, click the Edit Scheme button.
5. In the Launch ACS/TDK dialog, remove the text you typed into the Launch Options box.
6. Click the Save Only button.
* 
If you do not remove the -DROP_COMFILE text, next time you attempt to generate code using that settings file, ACS will just overwrite the Comfile with the settings rather than generate code.
To generate code through a command line:
1. Open a Command Prompt window.
2. Type the following command, and then press the Enter key:
Shadowacs -USE_COMFILE:<path and name of Comfile> -Force_Gen_Once_And_End
Where, <path and name of Comfile> specifies the path and name of the Comfile that you want to use for the generation.
* 
If you want to use the preceding command in a batch file, you must use start/wait.