Chinaunix首页 | 论坛 | 博客
  • 博客访问: 433473
  • 博文数量: 52
  • 博客积分: 1076
  • 博客等级: 准尉
  • 技术积分: 821
  • 用 户 组: 普通用户
  • 注册时间: 2011-08-18 20:05
个人简介

Hello World !

文章分类

全部博文(52)

文章存档

2016年(1)

2014年(1)

2013年(8)

2012年(38)

2011年(4)

分类: WINDOWS

2012-07-04 20:42:28

环境:windows7 64bit

ping ip –n

@echo off

set/p ip=IP:

set/p n=N:

echo Start time: %date% %time% >>%ip%.txt

ping.exe %ip% -n %n% >>%ip%.txt

echo End time: %date% %time% >>%ip%.txt

 

ping ip –t

@echo off

set/p ip=:

echo Start time: %date% %time%

ping.exe %ip% -t

echo End time: %date% %time%

pause

 

ping ip netseg

ping某个网段

@echo off

set/p ip=x.x.x:

set/p st=Start N:

set/p end=End N:

echo Start time: %date% %time% >>%ip%.log

for /L %%v IN (%st%,1,%end%) DO ping.exe %ip%.%%v>>%ip%.log

echo End time: %date% %time% >>%ip%.log

 

@echo off

set/p ip=x.x.x:

set/p st=Start N:

set/p end=End N:

echo Start time: %date% %time% >>%ip%.log

for /L %%v IN (%st%,1,%end%) DO ping.exe %ip%.%%v|find “TTL”>>%ip%.log

echo End time: %date% %time% >>%ip%.log

阅读(3271) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~