![]() |
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-08-02 02:26 |
48,037 topics / 350,122 posts / today 2 new / 48,250 members |
| DOS批处理 & 脚本技术(批处理室) » Batch File Tricks - Using the CHOICE Command for Time Delay |
| Printable Version 3,693 / 23 |
| Floor16 xiaojun | Posted 2004-02-03 00:00 |
| 银牌会员 Posts 499 Credits 2,202 | |
|
It's like this: I wanted to block execution display, to avoid too many >nul and @echo off lines in the bat, so I used ctty nul at the start. On the screen there was only ctty nul and the cursor (how do you block ctty nul itself?), the contents did execute, but everything was blocked, so how can I get back to the prompt?
The error prompt turned out to be because I had named the batch file itself Ctty.bat, (pure DOS); hehe... but there is an error prompt in XP's CMD, probably because it's a pure DOS command... many thanks! |
|
| Floor17 willsort | Posted 2004-02-03 00:00 |
| 元老会员 Posts 1,512 Credits 4,432 | |
|
Re xiaojun:
Use this to restore display: ctty con |
|
| Floor18 xiaojun | Posted 2004-02-03 00:00 |
| 银牌会员 Posts 499 Credits 2,202 | |
|
Oh, thanks for the help, problem solved...!!!
|
|
| Floor19 Roy | Posted 2004-02-03 00:00 |
| 管理员 Posts 1,633 Credits 4,869 | |
The following is quoted from xiaojun at 2004-2-3 14:10:21:Just use @CTTY NUL |
|
| Floor20 死性不改 | Posted 2004-06-24 00:00 |
| 中级用户 Posts 88 Credits 378 | |
|
Take a look! Learn something!
|
|
| Floor21 martin325 | Posted 2006-02-27 09:26 |
| 银牌会员 Posts 603 Credits 1,582 | |
|
@CTTY NUL can block the screen output when a BAT file is executing!
Then how can you block the screen output when config.sys is loading programs? A question for all the DOS experts here ![]() |
|
| Floor22 bagpipe | Posted 2006-02-27 10:36 |
| 银牌会员 Posts 425 Credits 1,144 From 北京 | |
|
After reading everyone’s discussion here, I learned a few things. In WIN9X, crashes caused by certain devices and device drivers have long been an old loophole, so I might as well mention it here, hehe
CON、NUL、AUX、CLOCK$、CONFIG$ CON\NUL CON\CON NUL\NUL NUL\CON AUX\NUL as soon as any of these are executed, Win9X will immediately hang CLOCK$ : System clock (system clock) CON : Console (console) AUX : COM1 (serial port) NUL : Dummy Port (null port) CONFIG$ I’m not too clear on this one, so if anyone knows, please tell me. But this loophole is gone in the NT series systems. It seems the reserved names of these devices cause some kind of overflow loophole, hehe |
|
| Floor23 Scott0902 | Posted 2006-02-27 17:05 |
| 中级用户 Posts 237 Credits 466 | |
Originally posted by Roy at 2003-8-16 00:00: Haha, this is great! Why does this line sound so much like what Shiryu says in Saint Seiya? (Taste the ultimate secret of the Dragon constellation that can make the Lushan waterfall flow backward — Rozan Shoryu Ha!!!) |
|
| Floor24 jefflo | Posted 2007-12-02 15:41 |
| 初级用户 Posts 16 Credits 36 | |
|
Try not to use external commands
|
|
| Prev 1 2 |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |