Run exe on computer in network through batch file
Posted
by
Peter Kottas
on Stack Overflow
See other posts from Stack Overflow
or by Peter Kottas
Published on 2012-09-22T16:57:43Z
Indexed on
2012/09/22
21:38 UTC
Read the original article
Hit count: 244
batch-file
I have few computers connected to the network and I want to create batch files to automatize the process of working with them. I have already created one used to shutdown computers at once. It is very simple I ll just post it for the sake of argument.
@echo off
shutdown -s -m \\Slave1-PC
shutdown -s -m \\Slave2-PC
shutdown -s -m \\Slave3-PC
Now I want to execute programs on these machines. So lets say there is "example.exe" file located "\Slave1-PC\d\example.exe"
using
call \\Slave1-PC\\d\\example.exe
runs it on my computer through network and i didn't come up with anything else. I dont want to use any psexec if possible. Help would be much appreciated.
Peter
© Stack Overflow or respective owner