I'll just post this while I try to find the answer in the past posts...
I'm trying to copy some root folders off one networked drive and copy them onto a local drive on a server.
The kicker is I want it to run automatically and inform me of any errors.
I found XXCopy, which will do this, but requires you to purchase a pro version or hit a button if it's on a networked drive, so it's paused until I hit a button. I get output to a log file that looks like this:
\\SERVER2, a server (networked computer) is being accessed.
You have the XXCOPY Freeware version for a stand-alone computer.
If you access the remote disk on a regular basis, you may consider
acquiring a license for XXCOPY-PRO license (for 2 computers).
Press any key to continue . . .
-------------------------------------------------------------------------------
F:\055-244010.OLD\proj\sct10maj\lots\sct10maj.gcf 162
F:\055-244010.OLD\proj\sct10maj\zz\aaa.doc Copy failed
F:\055-244010.OLD\proj\sct10maj\zz\locale.dat 830
But when I use typical XCopy, it doesn't log that the file failed to copy, it puts in the Command window that called it so it looks like this:
F:\055-244010.OLD\proj\sct10maj\lots\sct10maj.gcf
F:\055-244010.OLD\proj\sct10maj\zz\aaa.doc
F:\055-244010.OLD\proj\sct10maj\zz\locale.dat
F:\055-244010.OLD\proj\sct10maj\zz\Test.dat
868 File(s) copied
And the command window looks like this:
C:\>testy.bat > c:\log.txt
Access denied
C:\
(Note, I have a test file in there, aaa.doc that I don't have permissions to so I can test the errors)
So you can see how it doesn't tell me that aaa.doc had an error, just a list of errors in the command prompt - seems silly to me...
My question is two fold:
A) Is there a way to log XCopy's failures and which file it failed on?
B) Is there a way to emulate a keypress so I can get past XXCopy's complaints and still keep it logged properly so I can ensure the integrity of my backup?