Page 1 of 1

Operator module scripting "-SYSTEM" command

Posted: 03 Nov 2009, 10:45
by stefan
Hi,

Is it possible to pass more than just a one word command to the -SYSTEM option, and if yes, does anyone have an example? I was trying to do something along the lines of

operat.exe --OnSuspend "-SYSTEM somebatchfile.bat suspended" --OnResume "-SYSTEM somebatchfile.bat resumed"

Thanks,
Stefan

Posted: 04 Nov 2009, 08:22
by mellinger
Stefan,

use URL encoding of the space character as in

operat.exe --OnSuspend "-SYSTEM somebatchfile.bat%20suspended"

HTH,
Juergen

Posted: 05 Nov 2009, 13:59
by stefan
Thanks Juergen, got it working now. I had actually tried %20 earlier without success but hadn't realized then that the %2 was replaced by the command interpreter in my MS-DOS batch script. Using %%20 resolved this.

Stefan