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 ( Read more... )

Leave a comment

Comments 3

noghri November 14 2007, 17:30:31 UTC
Try the following:

replace /U "C:\Documents and Settings\mgray.MAIDPRO\Application Data\Microsoft\Outlook\*.*" "Z:\Outlook Backup"

The problem has to do with the spaces. Windows interprets a space as a new argument so it's attempting to replace files in C:\Documents into and

Reply


ursamajor November 14 2007, 17:34:11 UTC
My bet would be that because your directories have spaces in them, you probably need to put quotes around them - so:

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

or

copy *.* "Z:\Outlook Backup" /Y

Reply

ursamajor November 14 2007, 17:34:33 UTC
Bah, Steve beat me because I was at lunch. *G*

Reply


Leave a comment

Up