![]() |
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-11 05:33 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS批处理 & 脚本技术(批处理室) » Posting a program that can press Enter automatically |
| Printable Version 7,633 / 32 |
| Floor1 scriptor | Posted 2007-01-09 00:01 |
| 银牌会员 Posts 555 Credits 1,187 | |
|
This was written with dubug Not a virus. It's a COM file that presses Enter automatically Hope everyone likes it ──────────────── Moderator record ──────────────── Executed by: namejm Original title: Posting a file Modified title: Posting a program that can press Enter automatically Explanation: Because the title was too vague, making forum searching and management inconvenient, and three days after this notice was posted, the OP still had not modified the title, 2 credits were deducted, and I forcibly changed the title myself. ──────────────── Moderator record ──────────────── [ Last edited by namejm on 2007-2-3 at 11:03 AM ] Attachments ENTER.rar (87 bytes) |
|
| Floor2 scriptor | Posted 2007-01-09 00:09 |
| 银牌会员 Posts 555 Credits 1,187 | |
|
It's used to automatically respond to your bat commands
For example, suppose a bat is like this: @echo off echo do you want ? echo haha pause Then it will display: "Press any key to continue......" or "Press any key to continue......" But if you add @echo off echo do you want ? echo haha enter.com :other program ... ... ... then it will automatically judge your commands and stop at the proper time. |
|
| Floor3 kernelv | Posted 2007-01-09 00:43 |
| 初级用户 Posts 24 Credits 47 | |
|
I didn't quite understand. What is the relation between the 2 examples you gave? In the 2nd example there is one more line, enter.com, and one less line, pause, so what exactly did you mean by specially pointing out in your 1st example
Then it will display:? |
|
| Floor4 scriptor | Posted 2007-01-09 01:13 |
| 银牌会员 Posts 555 Credits 1,187 | |
|
What I mean is, if you understand the bat or other program you made very well,
and know at what point you want the program to continue running by itself, without showing prompts like "Press any key to continue......" or "Press any key to continue......" and so on, then you can add this enter.com to your bat and let the program judge for itself and continue running. The second example is not simply about removing pause, it was just to make the explanation easier. |
|
| Floor5 qasa | Posted 2007-01-09 01:15 |
| 高级用户 Posts 311 Credits 959 From 广东-LianJiang | |
|
Post #3
The pause in his first example is the pause command, which displays "Press any key to continue......" on the screen. And the second example uses the enter.com program in place of pause. |
|
| Floor6 vkill | Posted 2007-01-09 02:35 |
| 金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽 | |
|
I can't think of where this would be used
|
|
| Floor7 mackyliu | Posted 2007-01-09 03:56 |
| 初级用户 Posts 16 Credits 32 | |
|
It has some use, but really, it's also used rather rarely.
|
|
| Floor8 52enjoy | Posted 2007-01-09 04:14 |
| 初级用户 Posts 8 Credits 20 | |
|
Yeah, everybody knows the first command, but basically not many people know the later one. Hehe~
|
|
| Floor9 tghksj | Posted 2007-01-09 04:18 |
| 社区乞丐 Posts 90 Credits -49 | |
|
If your command must have Enter pressed before it can continue, you can use a pipe symbol to pass Enter to it.
ECHO.|需要按回车的命令 |
|
| Floor10 scriptor | Posted 2007-01-09 07:06 |
| 银牌会员 Posts 555 Credits 1,187 | |
|
Oh, that's not bad either
|
|
| Floor11 redtek | Posted 2007-01-09 07:28 |
| 金牌会员 Posts 1,147 Credits 2,902 | |
|
The important thing is that every tool you write brings continuous innovation and new thinking~ :)
Giving this post extra points as encouragement~ :) Hope to see more fun ideas and creations from brother scriptor~ :) |
|
| Floor12 scriptor | Posted 2007-01-09 07:43 |
| 银牌会员 Posts 555 Credits 1,187 | |
|
Many thanks, brother redtek
Hope there will be Recently I'm designing an alarm Because of exams, I don't have much time to think about it Hope someone can think of it before I do. Hehe。。。。。 |
|
| Floor13 PPdos | Posted 2007-01-09 14:34 |
| 高级用户 Posts 268 Credits 783 | |
|
Many thanks. I also hope you can provide the code for DEBUG as well
|
|
| Floor14 szgj1985 | Posted 2007-01-14 00:23 |
| 新手上路 Posts 6 Credits 13 | |
|
Not very useful
|
|
| Floor15 hzwdj | Posted 2007-06-06 13:05 |
| 新手上路 Posts 1 Credits 2 | |
|
Sometimes it really is needed
|
|
| 1 2 3 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |