中国DOS联盟论坛

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-11-10 19:56
47,815 topics / 349,930 posts / today 0 new / 48,291 members
DOS批处理 & 脚本技术(批处理室) » What does "ping -n 1 127.1 > nul" mean?
Printable Version  20,194 / 73
Floor31 gne3 Posted 2007-02-17 00:20
高级用户 Posts 252 Credits 526
dir>nul 2>nul
Here, 2 refers to redirecting the standard error output to nul. I know, heh heh
Floor32 mmyy525 Posted 2007-03-05 00:39
初级用户 Posts 10 Credits 26
Floor33 blue812 Posted 2007-03-05 05:52
初级用户 Posts 29 Credits 57
Very careful, learned. Thank you!!!!!!!!!!!!
Floor34 wxjclh Posted 2007-03-05 07:23
初级用户 Posts 32 Credits 65
I've always been unable to understand, but finally got it. Thanks to the people before floor 33, especially lxmlxm!
Floor35 leoson88 Posted 2007-03-07 02:07
初级用户 Posts 39 Credits 83
It can be understood as >NUL shields the correct return information
2>NUL shields the information of wrong return
Floor36 chengfdn Posted 2007-03-07 04:37
初级用户 Posts 12 Credits 26
Learn another trick, thanks
Floor37 needalfan Posted 2007-03-17 06:06
新手上路 Posts 1 Credits 2
Well written! Bits and pieces of learning...
Floor38 jianyaogao Posted 2007-03-17 21:05
初级用户 Posts 22 Credits 49
Floor39 574855721 Posted 2007-03-18 01:09
初级用户 Posts 13 Credits 25
Oh!
Suddenly see the light! ! ! !
Floor40 574855721 Posted 2007-03-18 01:11
初级用户 Posts 13 Credits 25
If there are still any questions, take a look at this batch processing @echo off&mode con cols=80 lines=13&title,【%~n0】&setlocal,EnableDelayedExpansion&color 02
set a=To***:
set b=Distance doesn't mean separation, no contact doesn't mean forgetting, no phone calls don't mean neglect. Happy birthday to you, Merry Christmas, Happy New Year, always happy...
set c= ------ by ***
set d= 2007-3-16
echo/&echo\
for %%i in (a b c d) do (
set/p= <nul
for /l %%a in (0,1,100) do (
if not "!%%i:~%%a,1!"=="" (
if %%a==24 echo.&echo;
set/p= !%%i:~%%a,1!<nul
ping 127.1 -n 1 >nul
)
)
echo;&echo;
)
for /l %%i in (0x1,0x1,0x9) do (
set /a b=%%i ">>" 1
::call :modify %%i
set a=%%i
color !a!!b!
ping 127.1 -n 2 >nul)
ping 127.1 -n 3 >nul
goto :print
:end
echo.&echo.
ping 127.0.0.1 -n 7 >nul 2>nul
goto :eof

:print
cls&color 04&echo\&echo\&echo\&for /f "delims=" %%a in ('more +38 %0') do echo %%a
mshta vbscript:CreateObject("SAPI.SpVoice").Speak("Happy birthday to you!")(Window.close)
goto :end



iiiiiiiiiiiiiiiiiii Wish ***:
|||||||||||||||||||||||
__|______H_a_p_p_y______|__ Happy birthday
|\/\/\/\/\/\/\/\/\\/\/\/\/\/|
|||||| B i r t h d a y |||||| Happy every day...
|,,,,,,,,,,,,,,,,,,,,,,,,,,,|
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ More and more beautiful...

--------------------------------------------------------------------------------
Floor41 axi Posted 2007-03-22 06:09
中级用户 Posts 93 Credits 238 From GZ
mshta vbscript:CreateObject("SAPI.SpVoice").Speak("Happy birthday to you!")(Window.close)

This sentence can make the batch processing sound, wonderful!
Floor42 swallow Posted 2007-03-26 09:22
新手上路 Posts 5 Credits 10
Learned something again today, not in vain. Hehe!
Floor43 hy433124shc Posted 2007-04-02 05:28
中级用户 Posts 75 Credits 201
Originally posted by axi at 2007-3-21 05:09 PM:
mshta vbscript:CreateObject("SAPI.SpVoice").Speak("Happy birthday to you!")(Window.close)

This sentence can make the batch processing sound, wonderful!



The speech rate is too fast, and the pronunciation is not quite right. It cannot pronounce pinyin,

Can the above deficiencies be solved?

Hope the expert can tell!
Floor44 minmin888 Posted 2007-04-20 08:55
初级用户 Posts 62 Credits 127
Learned something! Thanks to the expert!
Floor45 tongwandou Posted 2007-04-20 09:01
初级用户 Posts 50 Credits 112
Prev  1 2 3 4 5  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023