You can cause CVW to receive input from an input file and generate output to an output file. To redirect CVW input and output, you can use the /c option on a command line of the following form to start CVW:
cvw /c "<infile; t >outfile"
When you redirect input in this way, CVW carries out any commands in infile during startup. When CVW exhausts all commands in the input file, focus automatically shifts to the Command window.
When you redirect output, it is sent to both outfile and the Command window. You can use the t parameter before the right angle bracket (>) on the command line to send output to the Command window. You can also redirect output from the command line after CVW has started.
Redirection is a useful way to automate CVW startup. Although redirection makes it possible for you to keep a viewable record of command-line input and output, you cannot record mouse operations. Some applications—particularly interactive ones—may need modification to allow for redirection of input to the application itself.