中国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-08-11 05:34
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » Posting a program that can press Enter automatically
Printable Version  7,634 / 32
Floor16 jiangnan110 Posted 2007-06-08 12:41
初级用户 Posts 19 Credits 42
Worth learning
Floor17 eech Posted 2007-06-08 14:20
高级用户 Posts 346 Credits 906
Originally posted by tghksj at 2007-1-9 04:18:
If your command must have Enter pressed before it can continue, you can use a pipe symbol to pass Enter to it.

ECHO.|需要按回车的命令


Learned something again
Floor18 ken123888 Posted 2007-06-08 22:07
新手上路 Posts 8 Credits 17
It's always good to know one more thing
Floor19 ldr2zjj Posted 2007-06-09 21:22
初级用户 Posts 95 Credits 167
pause
If you don't use it, then it won't stop`~~
Floor20 benteng302 Posted 2007-06-10 08:06
初级用户 Posts 41 Credits 88
Mm, not very useful.
Floor21 ffuck Posted 2007-06-20 12:24
新手上路 Posts 6 Credits 15
No real practical use
Floor22 vxlk Posted 2007-06-21 21:18
新手上路 Posts 2 Credits 4
Floor23 jinghai666 Posted 2007-10-18 15:34
新手上路 Posts 1 Credits 2
A little batch trick: automatically answer "Y"

Some commands don't support automatically pressing Y, so you can write your batch like this

echo y|XXXX XX XX XX

Hehe, I learned this from someone else
Floor24 dssdjy Posted 2007-10-18 21:16
新手上路 Posts 2 Credits 4
Why doesn't it work? Where should enter.com be placed?
Floor25 scriptor Posted 2007-10-19 01:57
银牌会员 Posts 555 Credits 1,187


This seems to be the same as echo.|xxx.yyy?
For the moment I also can't think of an example more suitable than using echo.|xxx.yyy.

That is to say, when echo.|.... cannot give a better response to some kind of interruption in some program,
would enter.com be better to use than echo.|!?

So generally speaking, it's still better to use echo.|!
That enter.com was only posted because it was written with debug; its function is simply to return an Enter confirm
response to the program!

;)
Floor26 lzys Posted 2007-10-21 22:12
初级用户 Posts 28 Credits 54
Not very useful,,, keeping it as backup,,, maybe it'll come in handy someday.. hehe
Floor27 hygh Posted 2007-10-21 23:50
初级用户 Posts 19 Credits 45
This seems somewhat useful, collecting it first, thanks OP.
Floor28 lyying Posted 2007-11-24 14:27
新手上路 Posts 1 Credits 2
Thanks, I'll have a look
Floor29 luck199227 Posted 2007-12-28 18:14
新手上路 Posts 1 Credits 2
Sample Text occur happen
Floor30 hanhdf Posted 2007-12-29 03:32
新手上路 Posts 5 Credits 10
Nice
Prev  1 2 3  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023