In the "Action" tab:
1- start program
2- Program/script: C:\Windows\System32\cmd.exe
3- Add arguments: /c nameOfTheScript.bat
If you wanna log error use the following:
script.bat > logall.txt 2>&1
If you wanna append on the the file:
script.bat >> logall.txt 2>&14- Start In: c:/someDir (without the back slash)
No hay comentarios.:
Publicar un comentario