![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-04 17:19 |
48,038 topics / 350,123 posts / today 0 new / 48,251 members |
| DOS批处理 & 脚本技术(批处理室) » How to save xcopy's execution log into a TXT file |
| Printable Version 1,036 / 3 |
| Floor1 nbic | Posted 2007-04-27 23:25 |
| 初级用户 Posts 61 Credits 135 | |
|
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. |
|
| Floor2 flyinspace | Posted 2007-04-28 03:41 |
| 银牌会员 Posts 517 Credits 1,206 | |
|
Use start xcopy
|
|
| Floor3 nbic | Posted 2007-04-28 11:10 |
| 初级用户 Posts 61 Credits 135 | |
|
Give it a try..
|
|
| Floor4 nbic | Posted 2007-05-25 17:14 |
| 初级用户 Posts 61 Credits 135 | |
|
Later I solved it by adding >>a.txt to the end of each xcopy.. Still, thanks to the friend in reply #2.
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |