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-09-30 09:52
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Posting a program that can press Enter automatically View 8,162 Replies 32
Floor 16 Posted 2007-06-08 12:41 ·  中国 广东 肇庆 电信
初级用户
★
Credits 42
Posts 19
Joined 2007-06-08 11:32
19-year member
UID 90653
Gender Male
Status Offline
Worth learning
Floor 17 Posted 2007-06-08 14:20 ·  中国 安徽 芜湖 电信
高级用户
★★★
Credits 906
Posts 346
Joined 2006-07-10 09:58
20-year member
UID 58334
Gender Male
Status Offline
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
Floor 18 Posted 2007-06-08 22:07 ·  中国 广东 广州 联通
新手上路
★
Credits 17
Posts 8
Joined 2007-06-05 10:55
19-year member
UID 90305
Gender Male
Status Offline
It's always good to know one more thing
Floor 19 Posted 2007-06-09 21:22 ·  中国 广东 深圳 电信
初级用户
★★
Credits 167
Posts 95
Joined 2007-05-06 09:19
19-year member
UID 87628
Gender Male
Status Offline
pause
If you don't use it, then it won't stop`~~
Floor 20 Posted 2007-06-10 08:06 ·  中国 北京 联通
初级用户
★
Credits 88
Posts 41
Joined 2006-03-08 17:38
20-year member
UID 51603
Status Offline
Mm, not very useful.
Floor 21 Posted 2007-06-20 12:24 ·  中国 湖南 湘潭 电信
新手上路
★
Credits 15
Posts 6
Joined 2007-05-27 20:40
19-year member
UID 89495
Gender Male
Status Offline
No real practical use
Floor 22 Posted 2007-06-21 21:18 ·  中国 广东 东莞 电信
新手上路
★
Credits 4
Posts 2
Joined 2007-06-21 20:33
19-year member
UID 92017
Gender Male
Status Offline
Floor 23 Posted 2007-10-18 15:34 ·  中国 广东 深圳 宝安区 电信
新手上路
★
Credits 2
Posts 1
Joined 2007-10-18 15:12
18-year member
UID 100073
Gender Male
Status Offline
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
Floor 24 Posted 2007-10-18 21:16 ·  中国 广东 潮州 电信
新手上路
★
Credits 4
Posts 2
Joined 2007-10-06 20:59
18-year member
UID 99061
Gender Male
Status Offline
Why doesn't it work? Where should enter.com be placed?
Floor 25 Posted 2007-10-19 01:57 ·  中国 北京 中国科学院研究生院玉泉四公寓
银牌会员
★★★
Credits 1,187
Posts 555
Joined 2006-12-21 07:35
19-year member
UID 74129
Gender Male
Status Offline

....
enter.com|pause
....
enter.com|xyz.bat
....
enter.com|xxxx.exe
....




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!

;)
Floor 26 Posted 2007-10-21 22:12 ·  中国 河北 石家庄 桥西区 联通
初级用户
★
Credits 54
Posts 28
Joined 2006-10-16 14:23
19-year member
UID 65980
Gender Male
Status Offline
Not very useful,,, keeping it as backup,,, maybe it'll come in handy someday.. hehe
Floor 27 Posted 2007-10-21 23:50 ·  中国 广东 广州 番禺区 电信
初级用户
★
Credits 45
Posts 19
Joined 2007-02-03 00:35
19-year member
UID 78455
Gender Male
Status Offline
This seems somewhat useful, collecting it first, thanks OP.
Floor 28 Posted 2007-11-24 14:27 ·  中国 河南 平顶山 电信
新手上路
★
Credits 2
Posts 1
Joined 2007-11-24 14:01
18-year member
UID 103612
Gender Male
Status Offline
Thanks, I'll have a look
Floor 29 Posted 2007-12-28 18:14 ·  中国 上海 电信
新手上路
★
Credits 2
Posts 1
Joined 2007-12-28 17:48
18-year member
UID 107057
Gender Male
Status Offline
Sample Text occur happen
Floor 30 Posted 2007-12-29 03:32 ·  中国 北京 海淀区 北龙中网(北京)科技有限公司(BGP)
新手上路
★
Credits 10
Posts 5
Joined 2007-12-29 01:18
18-year member
UID 107085
Gender Male
Status Offline
Nice
Forum Jump: