Could some kind person write me a tiny script?

Soldato
Joined
25 Oct 2002
Posts
4,198
Location
Derbyshire
All i want is a script to move (copy) a single file to another folder and overwrite a file of the same name.

And...

Another to do the same (copy and write over) in reverse but for all the files in the folder (about 10).

This will be from a local drive to a shared folder on a networked drive.

lets say I'm moving file A.xls from C:\docs to H:\backup then need to move all files from H:\backup (A.xls to J.xls) to C:\docs.


What it's for is a simple backup and share system. with 10 .xls files. Each file is used by 1 person but everyone needs the up to date set of the whole lot as the info is combined into a master .xls sheet.

If someone could do me an example script i'd be a happy man!

Any help would be fantastic. :D
 
copy /Y "c:\docs\a.xls" "h:\backup\a.xls"
xcopy /Y "h:\backup" "c:\docs"

try that

put it into notepad, then save it as backup.bat (make sure it's not backup.bat.txt)

can't remember if you need \ after the directory names
 
Back
Top Bottom