Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

automated loading routines in win 2k

Status
Not open for further replies.

chrisd33

Technical User
Aug 22, 2005
6
GB
hi


i wish to do the following. i'm running win2k on an nt server

i have a file that I have to copy to 7 different directories on a regular basis. The file which i have to copy changes each time i'm supplied with a new one. I therefore wish to set upan automated routine that will take the file which i'm supplied with and import it into each of the 7 direcories, can anyone suggest how i'd do this ?

cheers

chris
 
Chris,

The way i would do it is create a batch file i.e.
In Notepad write the line (Add/Amend as needed)

To copy files
~~~~~~~~~~
copy D:\temp\email1.txt /D C:\Winnt
copy D:\temp\email1.txt /D C:\
~~~~~~~~~~
The 2 lines above copies the email1 text file from the D:\temp\ drive into the C:\Winnt and C:\ folders

To copy directories
~~~~~~~~~~
copy D:\temp\ /D C:\
~~~~~~~~~~

and save with a .bat extension (and double click to run)

FAM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top