Use a script to run an exe on the active session machine

Advertisement

seebee
Guest

Use a script to run an exe on the active session machine

Hi, I'm trying to send a file to several machines and then run a script which essentially just restarts the computer so the changes take effect.

Is there a command I could include in my script to open an exe file I need to run?

e.g. after connection is established:

cd "MyDirectory"
 
put "MyFile.xml"
 
start MyExeFile.exe
 
exit

The bold part is where I can't get it to work. I tried just the filename by itself, tried with the start cmd, etc. I also tried call.

Thanks

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum