Sharing a single batch file for all home group Computers..

tc61

New member
Local time
10:18 PM
Messages
1
Hello,

Here is my question. I have several computers on a home group. All the computer have program X on them. I need to run a batch file to start the program with some arguments that need to be changed often. I would like to have the computers all run the same batch file from shared location to execute the batch file. This way I only have to modify the one batch file for all the computer. I tired linking a shortcut but it will not work correctly. Can someone help me out?

thanks you
 

My Computer My Computer

Computer type
PC/Desktop
OS
Windows 7 Ultimate x64
Without knowing the contents of the batch file the easiest solution would be to create a batch file on each machine (with shortcut to the local batch so users won't meddle with the batch file contents) that copies the remote batch and runs it.

Code:
@echo off
REM copy batch from server for latest params
copy x:\remotebatch.cmd newlocalbatch.cmd
REM 5 second delay for file to copy
ping 192.0.2.2 -n 1 -w 5000 > nul
REM run it
newlocalbatch

Edit: You may want to add some error handling etc..
 

My Computer My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
Back
Top