Hello there.
To speed the process of relaunching some .exes across a network, I tried to create batch files.
Here's what I did :
It's the local .bat using PsExec, and is supposed to launch rebootnode.bat on a remote computer.
Here is my rebootnode.bat :
So this one looks for all instances of mxnetwork.exe, kills them and relaunch.
If I run rebootnode.bat directly from the remote computer, it works.
If I try using the local .bat, all the commands seem to execute, but if I check only TASKKILL worked, nothing has been relaunched, and I don't understand why.
Can you help me on that?
I hope I have been clear enough
To speed the process of relaunching some .exes across a network, I tried to create batch files.
Here's what I did :
XML:
psexec \\192.168.0.161 -u ********** -p ********** c:\mxreboot\rebootnode.bat
Here is my rebootnode.bat :
XML:
TASKKILL /F /IM mxnetwork.exe
cd "C:\Program Files\Next Limit\Maxwell 3"
START mxnetwork -node
START mxnetwork -manager
So this one looks for all instances of mxnetwork.exe, kills them and relaunch.
If I run rebootnode.bat directly from the remote computer, it works.
If I try using the local .bat, all the commands seem to execute, but if I check only TASKKILL worked, nothing has been relaunched, and I don't understand why.
Can you help me on that?
I hope I have been clear enough