Softimage SDK Programmer's Guide > Plug-in Development > Issues in Batch Scripting >

# Automatically Closing the Command Window

By default in batch mode on Windows, Autodesk Softimage runs in a new window that stays open after the process is finished. This allows you to see any messages that have been logged to the console.

However, it is sometimes desirable to turn this behavior off. For example, you may want to automatically run several scripts one after another from a single batch file. If the new window does not close, control does not return to the original batch process and the next script cannot start.

To make the command window close automatically, do either of the following:

- Use xsibatch as described in the previous section

  or

- Use xsi with the -continue option in the command line that starts Autodesk Softimage:

      xsi -continue -script myscript.vbs

  When started with this option, the new window will close automatically when the process terminates. The script or batch file that started Autodesk Softimage can then continue processing.