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-23 10:37
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » What does 2>nul 1>nul in batch processing statements mean? DigestI View 29,424 Replies 57
Floor 46 Posted 2008-02-01 04:35 ·  中国 河北 邢台 电信
中级用户
★★
Credits 242
Posts 134
Joined 2006-12-11 15:14
19-year member
UID 73203
Gender Male
Status Offline
Not only is it deep, but it's also very mysterious.
Floor 47 Posted 2008-02-09 13:03 ·  中国 湖北 咸宁 电信
新手上路
Credits 15
Posts 8
Joined 2008-01-14 21:36
18-year member
UID 108622
Gender Male
Status Offline
Can't understand it ,,,...
Floor 48 Posted 2008-02-14 20:56 ·  中国 河南 焦作 联通
初级用户
Credits 25
Posts 13
Joined 2007-03-17 11:26
19-year member
UID 82064
Gender Male
Status Offline
I can't understand it, I just know that >nul can block the correct output of the screen
>nul 2>nul" can block all screen output
Floor 49 Posted 2008-02-16 14:27 ·  中国 山东 烟台 联通
中级用户
★★
Credits 257
Posts 123
Joined 2008-01-05 11:08
18-year member
UID 107722
Gender Male
From 烟台
Status Offline
Good post, bookmark it
路 是自己选的
学习 是为了具备解决问题的能力
Floor 50 Posted 2008-03-22 21:41 ·  中国 江西 南昌 电信
初级用户
Credits 48
Posts 19
Joined 2008-03-22 20:37
18-year member
UID 113712
Gender Male
Status Offline
Learned
There are still some things that are not clear
Studying hard
Floor 51 Posted 2008-05-17 03:30 ·  中国 江西 上饶 广信区 电信
初级用户
Credits 29
Posts 29
Joined 2008-05-07 22:34
18-year member
UID 118049
Gender Male
Status Offline
Kind of understand, kind of not. Dizzy. Let's practice slowly. Write it down first
Floor 52 Posted 2008-05-17 03:35 ·  中国 江西 上饶 广信区 电信
初级用户
Credits 29
Posts 29
Joined 2008-05-07 22:34
18-year member
UID 118049
Gender Male
Status Offline
I really don't know what some people are up to when they just randomly reply with "awesome" "excellent" and such as soon as they come to the forum. Almost every time I enter a topic, I can see a few such people. It's really annoying to see such replies when I'm just getting into learning.
Floor 53 Posted 2008-05-17 08:06 ·  中国 辽宁 大连 教育网
新手上路
Credits 4
Posts 2
Joined 2008-03-16 19:40
18-year member
UID 113147
Gender Male
Status Offline
Hey, looking at it in a daze
Floor 54 Posted 2008-05-18 11:32 ·  中国 河南 周口 联通
初级用户
Credits 35
Posts 19
Joined 2008-05-14 19:22
18-year member
UID 118680
Gender Male
Status Offline
I'm a newbie, I'll look at it later
Floor 55 Posted 2008-05-25 11:37 ·  中国 广东 惠州 电信
高级用户
★★★
Credits 740
Posts 373
Joined 2008-05-23 14:40
18-year member
UID 119498
Gender Male
From 中国,广东
Status Offline
Floor 3:
You can use VER plus find, like this:

title Check Windows Version
ver|find "5.1.2600" > nul
if "%ERRORLEVEL%"=="1" goto noxp
Floor 56 Posted 2008-07-31 18:15 ·  中国 云南 昆明 电信
中级用户
★★
Credits 220
Posts 99
Joined 2008-06-26 15:12
17-year member
UID 120818
Gender Male
Status Offline
So cool```Looking at these articles, there is an unknown impulse.
Floor 57 Posted 2008-07-31 18:15 ·  中国 云南 昆明 电信
中级用户
★★
Credits 220
Posts 99
Joined 2008-06-26 15:12
17-year member
UID 120818
Gender Male
Status Offline
So cool```Looking at these articles gives an unknown urge
Floor 58 Posted 2008-11-15 12:09 ·  中国 云南 昆明 电信
初级用户
★★
Credits 76
Posts 64
Joined 2008-04-24 23:56
18-year member
UID 116884
Gender Male
Status Offline
Originally posted by xjhlhb at 2005-9-14 04:39 PM:
Thanks to the expert in the 2nd floor for the explanation. It seems that such a command is completely correct!
Through such a batch processing, we summarize as follows: 1 REG can read registry information; 2 CALL can call the command segment within this file; 3 GOTO can...


Please refer to the following link:

(Solved) How to judge whether the system is 95/98 or 2000/XP through batch processing
http://www.cn-dos.net/forum/viewthread.php?tid=16963
Forum Jump: