OT: computer batch file help

Dec 08, 2004 3 Replies
Jump to replies (3)

Sorry, I've been posting more OT than Gunner. At least its a little metal related, I'm trying to get a cnc lathe running.



I wrote a little batch file to backup my CNC setup files accross my network. I mapped all the drives and the file is just several command like this:



COPY *.CBK "W:\MY DOCUMENTS" /Y COPY *.CBK "X:\MY DOCUMENTS" /Y COPY *.CBK "Y:\MY DOCUMENTS" /Y COPY *.CBK "Z:\MY DOCUMENTS" /Y



This is close but not what I want. This copies over all the files, /Y switch. What I need to do is only copy any new files, or automatically answer "no" when prompted do you want to copy over this file? /N does something else.



How do I do this?



Karl


Agreed. Use xcopy and the archive bit. BTW, there is a free program called xxcopy that has a ton of options and can copy long filenames. Very useful for backing up Windows directories with a batch file.

Jim's right! Get xxcopy (it's truly free,off the web) and set it up to do what you want. I've used it to 'clone' C drive to D drive so that I have a true,complete, near idiot proof backup of everything( damn near 170,000 files). Jay

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required