How to make Script for 'Remote Execution' of Programs

It is useful sometimes to download a program from a remote server and run on the computer where the batch script is running. It is not so hard to implement it:













title Loading program... Please wait...
@echo off
net use w: \\192.168.x.x\a1 > nul
echo "1. Disk connected"
cd d:\
d:
md 123
cd d:\123
md Program
copy w:\Prg.exe d:\123\Program\Prog.exe > nul
echo "2. File updated"
start d:\123\Program\Prog.exe > nul
echo "3. Run programm"
net use w: /delete > nul
echo "4. Disk disconnected"
exit 

You can change this batch file with help of our award-winning batch files editor. Hope you'll find this example useful.
0 Comments
Disqus
Fb Comments
Comments :

0 comments:

Post a Comment