Programming geek help? Prett y please

Nov 14, 2007 11:41

OK, what I want to do doesn't seem that hard in theory, but I can't get it to work. I am trying to make a little .bat file that I can use with my Windows XP scheduled tasks so that it will copy the files of one folder on my computer to a folder on my companies network every night.

I want the files in C:\Documents and Settings\mgray.MAIDPRO\Application Data\Microsoft\Outlook\ to be copied into Z:\Outlook Backup and for it to overwrite older files with the same name with the new ones.

I have tried both of these and keep getting either syntax errors or invalid switch errors, but I am sure the folder names are correct (I just cut and pasted them to be sure) and I think I am using the commands correctly.

HELP! Which of these commands should I use and what am I doing wrong to them? :(

Try #1 -
replace C:\Documents and Settings\mgray.MAIDPRO\Application Data\Microsoft\Outlook\*.* Z:\Outlook Backup /u
pause

Try #2 -
copy *.* Z:\Outlook Backup /Y
Pause
Previous post Next post
Up