![]() |
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-10 14:58 |
47,811 topics / 349,897 posts / today 0 new / 48,255 members |
| DOS批处理 & 脚本技术(批处理室) » What does "ping -n 2 127.1>nul" mean |
| Printable Version 1,782 / 4 |
| Floor1 zhanghuai520 | Posted 2006-12-06 09:53 |
| 新手上路 Posts 1 Credits 2 | |
|
I see that many experts' batch scripts have such a line:
ping -n 2 127.1>nul I don't understand!! I'm a newbie, and please各位 experts teach me what it means, please!! Excuse me!! ──────────────── Moderation Record ──────────────── Performed by: namejm Original title: Noob Modified title: What does ping -n 2 127.1>nul mean Explanation: Because the original title was too vague, which was not convenient for forum search and management. Three days after this notice was posted, the original poster had not changed the title. Now I forcefully modify the title and deduct 2 points from the original poster's points. ──────────────── Moderation Record ──────────────── [ Last edited by HAT on 2008-11-20 at 11:51 ] |
|
| Floor2 namejm | Posted 2006-12-06 10:16 |
| 荣誉版主 Posts 1,737 Credits 5,226 From 成都 | |
|
You can achieve the purpose of delay by pinging the local IP.
|
|
| Floor3 a9319751 | Posted 2006-12-07 03:47 |
| 中级用户 Posts 170 Credits 439 | |
|
ping -n 2 127.1>nul
is equivalent to ping -n 2 127.0.0.1 >nul -n counts 2 two times 127.0.0.1 local IP >nul null |
|
| Floor4 q1a2z3q1a2z3 | Posted 2007-03-14 11:22 |
| 初级用户 Posts 41 Credits 88 | |
|
The explanation is very clear, thank you.
a9319751 Intermediate User |
|
| Floor5 277214848 | Posted 2008-11-20 11:50 |
| 新手上路 Posts 6 Credits 7 | |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |