Batch Files

M

Mike Harrison

For many years I have been using a batch file to back up files later than a
specific date to a temporary directory. I then copy them to an external hard
drive. My new computer has Vista business. I am unable to get the batch file
to work. Would someone please help?

Old version
call xcopy c:\docume~1\mikeha~1\mydocu~1\*.* C:\temp3 /f /d:06-03-2008 /i /s

New version
call xcopy c:\users\mikeh\documents\*.* C:\temp3 /f /d:06-03-2008 /i /s
 
S

Synapse Syndrome

Rick Rogers said:
Hi Mike,

The command xcopy was replaced with robocopy, alter your batch accordingly
and see if this helps.


ROBOCOPY has been added as standard in Vista, rather than you having to add
it from the Resource Kit, but XCOPY is still in Vista, IIRC.

I think the reason for his script is not working is due to UAC not allowing
writes to the C: root? I can't test right now, but maybe the new folder
cannot be created by the command unless in an elevated prompt?

I agree he should convert to using ROBOCOPY instead though, as it has much
better features.

ss.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top