Link to home
Start Free TrialLog in
Avatar of padas6
padas6Flag for India

asked on

Logparser dll coping in to Multiple Server

Hi ,

I Need to copy the lagparser.dll file into multile Server, please suggest how do we achive this one through batch file.
Avatar of kevinhigg
kevinhigg

This should be pretty straightforward; you could use a for loop in batch to do this:

for /f %%i in (servers.txt) do copy logparser.dll \\%%i\c$\

Open in new window


Servers.txt would contain the names of the machines that you want to deploy to (one per line), you'd update logparser.dll with the path / name to the file that you want to copy and update the destination path to reflect the appropriate location.  Enjoy!
Avatar of padas6

ASKER

Hi,

thanks for the support, can you complet the bact file , I have below information as a source & destination.

\\udb\it_drive\log\LogParser.dll  - Source  ( File copied in a central location)
C:\WINDOWS\system32 - Destination ( for all Server)
ASKER CERTIFIED SOLUTION
Avatar of kevinhigg
kevinhigg

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of padas6

ASKER

Command was worked.