assume that the target program is abc.exe
and runs with the parameter -a xxx-b xxx
, so how do you implement this script?
power shell and normal cmd are both fine.
assume that the target program is abc.exe
and runs with the parameter -a xxx-b xxx
, so how do you implement this script?
power shell and normal cmd are both fine.
I don't think you need to write a single line of code, but use the service management that comes with windows to implement it.
registering your program as a windows service can either boot or hang up and start automatically.
tasklist|find /i "abc.exe"
if %errorlevel% == 1 (start abc.exe "-a xxx -b xxx")
Previous: Python Not tainted 4.4.0-91-generic-sharp114-Ubuntu what reason
Next: Do large companies use responsiveness in Web development?