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


  1. Posts : 1
    Windows 7 Ultimate x64
       #1

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


    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


  2. Posts : 5,092
    Windows 7 32 bit
       #2

    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


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:16.
Find Us