找回密码
 注册
搜索
[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
查看: 18617|回复: 2

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

[复制链接]
发表于 2011-8-27 13:50:28 | 显示全部楼层 |阅读模式
大家是否遇到这样的情况?

用 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
复制代码
只能显示最后一段的过程在屏幕上,是否可以显示完整过程,或者可以把整个过程写入文本?

谢谢大家了。
发表于 2011-8-27 14:27:33 | 显示全部楼层
  1. ping 127.1 >a.txt
复制代码
 楼主| 发表于 2011-8-27 14:29:47 | 显示全部楼层
回复 2# CUer


    是的,后来我想到了,很不好意思,问了那么痴呆的问题。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|批处理之家 ( 渝ICP备10000708号 )

GMT+8, 2026-3-18 00:17 , Processed in 0.010415 second(s), 8 queries , File On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表