I used xcopy to copy several hundred files, and I want to know whether it copied everything completely. If xcopy's execution log can be saved into a txt file, that would solve it.
I tried two methods:
1. Add > a.txt to the end of every xcopy
2. Add this after all xcopy commands have finished:
echo.Please wait, the log is being saved
工具.bat > 工具.txt
The results I found were:
1. The log can be saved, but the xcopy output is not shown on the bat screen;
2. The log can also be saved, but the screen stays at ——Please wait, the log is being saved
Pressing Enter also does not line-break to the following program; instead it goes back to the beginning and starts line-breaking other programs in order, but the screen still does not change.
The effect I hope to achieve:
It would be best to use the second method, because that would save the trouble of manually adding > a.txt to the end of every xcopy, and it also would not affect normal screen display. But how can I break out of it and continue line-breaking the following program? Please help me with this problem.
I tried two methods:
1. Add > a.txt to the end of every xcopy
2. Add this after all xcopy commands have finished:
echo.Please wait, the log is being saved
工具.bat > 工具.txt
The results I found were:
1. The log can be saved, but the xcopy output is not shown on the bat screen;
2. The log can also be saved, but the screen stays at ——Please wait, the log is being saved
Pressing Enter also does not line-break to the following program; instead it goes back to the beginning and starts line-breaking other programs in order, but the screen still does not change.
The effect I hope to achieve:
It would be best to use the second method, because that would save the trouble of manually adding > a.txt to the end of every xcopy, and it also would not affect normal screen display. But how can I break out of it and continue line-breaking the following program? Please help me with this problem.
