1.

Solve : Another simple xcopy question...?

Answer»

I would like to echo the date and time to an error text file, which sends ERRORS from xcopy like this:
xcopy *.* Y:\FOLDERNAME /E /C /Y 2>>c:\copyerrors.txt

Right now it just echoes the error, not the date/time

How can I do that?

Thanks!This might work for you if you DONT Echo Off and Echo On, if you Echo off and On then remove the

echo. %date% at %time%>>c:\copyerrors.txt
xcopy *.* Y:\foldername\*.* /E /C /Y >>c:\copyerrors.txt

Warning: A cyclic copy error will show if your running this from C:\ so you may want to have it write to Y: instead of C:



Discussion

No Comment Found