I would like to know a way to run a batch file on multiple pc's. For instance, for a particular task I need to delete 4 files on a pc and then copy a new file to the pc. If I wrote a standard batch file then I could accomplish that task if I were at each pc. But, I cannot run that same batch file on other pc's. I could also edit the batch file to include each pc but then it would turn into a huge file. Is there a way to run a simple batch file on multiple pc's? I've attached the code at the bottom.
del "C:\Summit\CommonCode\~Cache~\*.*" /Q
del "C:\Summit\Spectrum for Windows\Programs\~Cache~\*.*" /Q
del "C:\Summit\Spectrum For Windows\Programs\AdvantageConfig.mdb"
del "C:\Summit\Spectrum For Windows\Programs\AdvantageConfigOld.mdb"
xcopy "P:\ONS\Lender Upgrade\AdvantageConfig.mdb" "C:\Summit\Spectrum For Windows\Programs\"