Hi,
I've just taken over the VisualCron installation at our site and I'm having some problems getting a couple of batch files to run in sequential order. What seems to happen is that instead of Task 2 waiting for Task 1 to finish, they end up running together at the same time.
For example, if I create a new Group and Job, and add the following tasks...
Task 1 - execute "notepad.exe"
Task 2 - execute "cmd.exe"
Task 3 - execute "notepad.exe"
...I find that the job stops and waits for me to manually close the first notepad window, but the cmd.exe task falls straight through and I get the second notepad window.
I've found a couple of ways to solve this in the cmd.exe task..
1) Check "Use shell execute"
or
2) Uncheck "Store standard output" and "Store standard erro"
...and I then get a command line stay open until I type "exit". I'm guessing that under the covers VisualCron is calling either ShellExecute or CreateProcess and intercepting the stdio streams, but I'm not sure what the implications are in terms of whether the sever or desktop account are used, and whether it can run without a user logged on.
Can you advise?
Thanks,
Mike