Id like to kill and start a program on a remote machine with psexec. I use the following batch-file (c:/users/user is psexec root)
cd c:/users/user
psexec \\computername cmd /c "taskkill /im SwyxIt!.exe /f"
psexec \\computername cmd /c "taskkill /im CLMgr.exe /f"
timeout -t 5
psexec \\computername cmd /c "start C:\Program Files (x86)\SwyxIt!\SwyxIt!.exe"
but the program doesn't start!
also if i run the start command like this
psexec \\computername cmd /c "C:\Program Files (x86)\SwyxIt!\SwyxIt!.exe"
It doesn't start.
If i run the command without psexec on my own machine start "C:\Program Files (x86)\SwyxIt!\SwyxIt!.exe"
it works just fine.
any suggestions? I have administrator priviliges on all remote machines.