[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[文本处理] 批处理如果处理非常多的文件,如何知道前面文件的处理结果?

大家是否遇到这样的情况?

用 ping ,copy ,或者是 del 加上通配符 即 copy *.jpg del *.jpg

ping IP之后的延时率TTL等这些 批处理

最后程序完成之后,最后加了PAUSE,窗口上不会显示整个过程,只是最后一段处理的记录,有办法让屏幕显示完整的过程吗?谢谢大家~!!

比方说:
  1. Reply from 222.73.78.166: bytes=100 time=18ms TTL=55
  2. Reply from 222.73.78.166: bytes=100 time=18ms TTL=55
  3. Reply from 222.73.78.166: bytes=100 time=18ms TTL=55
  4. Reply from 222.73.78.166: bytes=100 time=17ms TTL=55
  5. Reply from 222.73.78.166: bytes=100 time=18ms TTL=55
  6. Reply from 222.73.78.166: bytes=100 time=18ms TTL=55
  7. Reply from 222.73.78.166: bytes=100 time=17ms TTL=55
  8. Reply from 222.73.78.166: bytes=100 time=18ms TTL=55
  9. Reply from 222.73.78.166: bytes=100 time=17ms TTL=55
  10. Reply from 222.73.78.166: bytes=100 time=17ms TTL=55
  11. Reply from 222.73.78.166: bytes=100 time=17ms TTL=55
  12. Reply from 222.73.78.166: bytes=100 time=17ms TTL=55
  13. Reply from 222.73.78.166: bytes=100 time=17ms TTL=55
  14. Reply from 222.73.78.166: bytes=100 time=18ms TTL=55
  15. Reply from 222.73.78.166: bytes=100 time=17ms TTL=55
  16. Reply from 222.73.78.166: bytes=100 time=18ms TTL=55
  17. Reply from 222.73.78.166: bytes=100 time=18ms TTL=55
  18. Reply from 222.73.78.166: bytes=100 time=18ms TTL=55
  19. Reply from 222.73.78.166: bytes=100 time=17ms TTL=55
  20. Reply from 222.73.78.166: bytes=100 time=18ms TTL=55
复制代码
只能显示最后一段的过程在屏幕上,是否可以显示完整过程,或者可以把整个过程写入文本?

谢谢大家了。

  1. ping 127.1 >a.txt
复制代码

TOP

回复 2# CUer


    是的,后来我想到了,很不好意思,问了那么痴呆的问题。

TOP

返回列表