How to run a program over a network using a bat-file?

For example, I run the following command over the network:

taskkill / s 10.10.10.10 / IM Name.exe

This command terminates the Name.exe process. Works. And how to start this process again? Either exe file (file location is known).

  • Similar to completion: start 10.10.10.10 \ procPath \ proc.exe. Or do you need to run on a remote machine? - Ildar
  • @Ildar yes, remotely - Vladimir

1 answer 1

The Sysinternals Suite includes the psexec utility:

psexec \\10.10.10.10 <путь_к_программе_на_удаленной_машине> 

(you may need the -u , -p options to specify a username / password to connect to the machine)

  • Is this utility enough to install on my machine? Either need both? - Vladimir
  • @Vladimir only on your - kmv