|
Batch Job |
Top Previous Next |
|
You can generate orders from the command line. You can use windows scheduler for this as well, if you create a .bat file. –suite "suitename1" "suite name 2" Suites to use -test Runs a test for each suite in the list -orders Generates orders for each suite in the list -min Starts Trading Blox in a minimized window -hidden Runs Trading Blox as a hidden window -noProgress Hides the progress dialog -exit Exits the program when finished. Runs silent mode: no breakpoints and no data loading error messages Here is an example .bat file that opens the MySuite suite, generates orders, and then exits the application. tradingblox.exe -suite "MySuite" -orders -exit
To run multiple .bat files in a row, or at the same time, use a Windows Script Host file. Create a file in notepad with a .vbs extension. The following sets the current directory, and runs several bat files one after another. The first parameter of the WSHShell.Run function is the bat file name, the second is the window style, and the third is wait on return.
Dim WSHShell
The above example runs hidden, and the .bat file also uses the -hidden -noProgress flags, so these can run behind the scenes while the computer is used for other tasks. If the bat files reference different install folders of Trading Blox, then the wait on return parameter could be false, which would launch all these processes at the same time. A multiple simultaneous license of Trading Blox would be required to run multiple instances at the same time. Reference on Windows Script Host: http://msdn.microsoft.com/en-us/library/d5fk67ky(v=vs.85).aspx
|