|
Advanced commands |
Top Previous Next |
|
Advanced commands You can schedule certain events instead of presets. These events are called by special commands, starting with "/". The list of such events will be extended in the further versions. /exit - this command forces OCB to halt. /safeexit - OCB will exit only if there were no errors since the program was started. /trunclog - truncate the log file. /reboot - reboot the computer. /shutdown - shutdown the computer. /logoff - log off from the system. /hibernate - enter hibernate mode. /suspend - enter suspend mode. /execsync() - execute a program in sync mode. /execasync() - execute a program in async mode. Other commands are described in other sections. The last two commands allow you to schedule external program execution as well as any OCB preset. Example: /execsync(c:\program files\myprog\myprog.exe) If a program needs parameters, add them after the "|" symbol: /execsync(c:\program files\parser\parser.exe|/silent /fast "c:\my documents\parsedata\data.txt") Don't forget that when you use async mode, OCB waits until the application finishes its work and during this time other presets cannot be called. If you use sync mode, OCB is ready to work immediately after the execution of your application.
The list of all commands and availability.
SEE ALSO: Using command line parameters to control OCB.
|