China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-20 11:48
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » What does "ping -n 1 127.1 > nul" mean? View 18,255 Replies 73
Floor 31 Posted 2007-02-17 00:20 ·  中国 浙江 台州 温岭市 电信
高级用户
★★
DOS学徒
Credits 526
Posts 252
Joined 2007-02-12 05:35
19-year member
UID 79286
Gender Male
Status Offline
dir>nul 2>nul
Here, 2 refers to redirecting the standard error output to nul. I know, heh heh
Floor 32 Posted 2007-03-05 00:39 ·  中国 吉林 长春 电信
初级用户
Credits 26
Posts 10
Joined 2007-02-22 00:10
19-year member
UID 79909
Gender Male
Status Offline
Floor 33 Posted 2007-03-05 05:52 ·  中国 广东 珠海 电信
初级用户
Credits 57
Posts 29
Joined 2006-09-27 02:04
19-year member
UID 63754
Status Offline
Very careful, learned. Thank you!!!!!!!!!!!!
Floor 34 Posted 2007-03-05 07:23 ·  中国 北京 顺义区 联通
初级用户
Credits 65
Posts 32
Joined 2007-01-17 09:56
19-year member
UID 76791
Gender Male
Status Offline
I've always been unable to understand, but finally got it. Thanks to the people before floor 33, especially lxmlxm!
Floor 35 Posted 2007-03-07 02:07 ·  中国 广西 柳州 电信
初级用户
Credits 83
Posts 39
Joined 2006-12-22 09:55
19-year member
UID 74267
Gender Male
Status Offline
It can be understood as >NUL shields the correct return information
2>NUL shields the information of wrong return
Floor 36 Posted 2007-03-07 04:37 ·  中国 广东 广州 联通
初级用户
Credits 26
Posts 12
Joined 2006-09-24 20:29
19-year member
UID 63553
Status Offline
Learn another trick, thanks
Floor 37 Posted 2007-03-17 06:06 ·  中国 山东 威海 教育网
新手上路
Credits 2
Posts 1
Joined 2007-03-08 08:23
19-year member
UID 81071
Gender Male
Status Offline
Well written! Bits and pieces of learning...
Floor 38 Posted 2007-03-17 21:05 ·  中国 上海 黄浦区 电信
初级用户
Credits 49
Posts 22
Joined 2005-08-04 13:44
20-year member
UID 41332
Gender Male
Status Offline
Floor 39 Posted 2007-03-18 01:09 ·  中国 湖北 荆门 电信
初级用户
Credits 25
Posts 13
Joined 2007-03-05 12:06
19-year member
UID 80839
Gender Male
Status Offline
Oh!
Suddenly see the light! ! ! !
Floor 40 Posted 2007-03-18 01:11 ·  中国 湖北 荆门 电信
初级用户
Credits 25
Posts 13
Joined 2007-03-05 12:06
19-year member
UID 80839
Gender Male
Status Offline
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...

--------------------------------------------------------------------------------
Floor 41 Posted 2007-03-22 06:09 ·  中国 广东 广州 电信
中级用户
★★
脚本爱好者
Credits 238
Posts 93
Joined 2007-03-11 13:38
19-year member
UID 81417
Gender Male
From GZ
Status Offline
mshta vbscript:CreateObject("SAPI.SpVoice").Speak("Happy birthday to you!")(Window.close)

This sentence can make the batch processing sound, wonderful!
Floor 42 Posted 2007-03-26 09:22 ·  沙特阿拉伯
新手上路
Credits 10
Posts 5
Joined 2007-03-19 13:09
19-year member
UID 82252
Gender Male
Status Offline
Learned something again today, not in vain. Hehe!
Floor 43 Posted 2007-04-02 05:28 ·  中国 山东 潍坊 电信
中级用户
★★
Credits 201
Posts 75
Joined 2007-02-24 00:26
19-year member
UID 80034
Gender Male
Status Offline
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!
Floor 44 Posted 2007-04-20 08:55 ·  中国 广东 中山 电信
初级用户
★★
Credits 127
Posts 62
Joined 2007-04-19 12:43
19-year member
UID 85744
Gender Male
Status Offline
Learned something! Thanks to the expert!
Floor 45 Posted 2007-04-20 09:01 ·  中国 陕西 西安 电信
初级用户
★★
Credits 112
Posts 50
Joined 2007-04-15 00:59
19-year member
UID 85191
Gender Male
Status Offline
Forum Jump: