Question Locked

script to put a document into a specific file location

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Hi does anybody know how i can put an altered document into a specific folder location. This document is the configuration file for typequick. When i reimaged the entire office a couple of months ago most came up with a different port number, now that port is no longer useable and so am trying to change the configuration file on these computers to use a different port. This is done by changing the normal configuration file by changing the port number and then this document needs to replace the old document. any help here would be very much appreciated.

4 replies

by rob miners

Run this from the file server. You will need 2 files. The first one is the .bat the second is a text file with a list of workstations that you need to add to.

File 1 = copyto.bat

FOR /F " tokens=1 " %%i in (d8.txt) do copy C:\test\*.* "%%i\C$\Program Files\CA"

Put your files that you want copied into a folder EG: c:\test

File 2 = d8.txt

\\ws01.minero.local
\\ws02.minero.local

This discussion is closed to new replies.