Command Reference : Command Reference
Spawn a new process.
spawn(options) filename [arg1 arg2 arg3…]
Follow the keyword with a filename indicating the process to spawn, and optional arguments to be passed to the process.
“n” or “normal”
Create process in normal mode. The process will typically create a maximized window and may wait for user input.
“m” or “minimized”
Create process in a minimized window. Note that some applications may not accept requests to run in minimized mode.
“h” or “hidden”
Create process in hidden mode (without a visible window). Note that some applications may not accept requests to run in hidden mode.
Specifies the maximum time in milliseconds that EViews should wait for the process to complete. If the timeout interval is reached and the process has not completed, EViews will generate an error. A timeout setting of zero may be used to indicate that EViews should not wait for the spawned process to complete. If no timeout option is provided, EViews will wait indefinitely for the process to complete.
Specifies the exit code that the process will return if it is completed successfully. If the process returns an exit code other than the specified value, EViews will generate an error. If the exit code option is not specified, EViews will not generate an error no matter what exit code is returned by the process.
out = tablename
If an output table name is specified, EViews will capture any data written to standard output by the spawned process and store it into a table object with the specified name in the workfile. Note that this option will have no effect unless either the minimized or hidden option is used and the timeout value is not zero.
spawn "c:\program files\microsoft office\office11\excel.exe" test.xls
starts a new Excel process, passing it the command line argument “test.xls”.
See shell for information on starting a Windows command shell.