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-08-10 02:34
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » (Closed) How to cancel the arbitrary key wait in the partition backup and restore tool ImageIt View 3,048 Replies 23
Original Poster Posted 2004-04-26 00:00 ·  中国 广东 河源 电信
高级用户
★★
Credits 916
Posts 201
Joined 2003-05-04 00:00
23-year member
UID 1849
Gender Male
Status Offline
In a program in a batch file always shows "Press any key to continue..." after execution, which means you need to press any key to continue the subsequent program. I don't want to press any key manually, but want it to automatically continue to execute the subsequent program after execution. How should I do it?

---------- Edited by willsort ----------
Modified original title: How to skip the press any key to continue prompt in batch processing?
Latest attachment of this topic: ImageIt 3.1.06.01 key-free waiting version download
it310601.rar (2005-10-25 23:09, 58.6 K)
---------- Edited by willsort ----------


[ Last edited by willsort on 2005-10-25 at 23:13 ]
Floor 2 Posted 2004-04-26 00:00 ·  中国 湖南 株洲 电信
中级用户
★★
Credits 397
Posts 64
Joined 2004-04-18 00:00
22-year member
UID 22767
Gender Male
Status Offline
Usually programs provide switches like /y /sure to run in "quiet mode".
If there are no such parameters, you can try starting the program with this format to see if it solves the problem:

ECHO Y | Program name
Floor 3 Posted 2004-04-26 00:00 ·  中国 广东 河源 电信
高级用户
★★
Credits 916
Posts 201
Joined 2003-05-04 00:00
23-year member
UID 1849
Gender Male
Status Offline
It itself does not provide the /y switch. According to your method, ECHO Y | program name also doesn't work. What should I do?
Floor 4 Posted 2004-04-26 00:00 ·  中国 广东 河源 电信
高级用户
★★
Credits 916
Posts 201
Joined 2003-05-04 00:00
23-year member
UID 1849
Gender Male
Status Offline
It itself does not provide the /y switch. According to your method, ECHO Y | program name also doesn't work. What should I do?
Floor 5 Posted 2004-04-26 00:00 ·  中国 河南 安阳 联通
银牌会员
★★★
Credits 1,186
Posts 334
Joined 2003-05-30 00:00
23-year member
UID 2626
Gender Male
Status Offline
You can directly delete the pause line of the batch processing.
Adding rem or :: before the command line is also okay.
If you must execute pause, you can write it like this:
echo.|pause
Floor 6 Posted 2004-04-27 00:00 ·  中国 湖南 株洲 电信
中级用户
★★
Credits 397
Posts 64
Joined 2004-04-18 00:00
22-year member
UID 22767
Gender Male
Status Offline
re: walu

I tried many methods for testing, but none worked.

At my wits' end...


Floor 7 Posted 2004-04-27 00:00 ·  中国 广东 河源 电信
高级用户
★★
Credits 916
Posts 201
Joined 2003-05-04 00:00
23-year member
UID 1849
Gender Male
Status Offline
This question is difficult, heh heh. There are two methods:
1. Need to debug this program, find the corresponding instruction execution jump;
2. Write a program in assembly to simulate keyboard presses, and how to add the compiled program to the batch processing.

There should be quite a few people here who can program. Which brother can come to help?

The attachment is this program Open the attachment
Floor 8 Posted 2004-04-27 00:00 ·  中国 广东 河源 电信
高级用户
★★
Credits 916
Posts 201
Joined 2003-05-04 00:00
23-year member
UID 1849
Gender Male
Status Offline
The execution format of this program is as follows:
it /status all
Floor 9 Posted 2004-04-27 00:00 ·  中国 山西 运城 联通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
RE walu:

  Brother walu has misled me a lot. How does this have anything to do with batch processing? The program directly reads the keyboard status using interrupt 16h instead of reading characters, so sending any characters through the pipe is useless. After thinking it over for a long time, I directly used DEBUG to cancel all calls to interrupt 16h in the program. Maybe some problems will be caused, such as when prompting to press any key to restart the system, it may restart directly without waiting for a key press. Please test it, Brother walu.

Open the attachment
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 10 Posted 2004-04-27 00:00 ·  中国 广东 河源 电信
高级用户
★★
Credits 916
Posts 201
Joined 2003-05-04 00:00
23-year member
UID 1849
Gender Male
Status Offline
willsort, really thank you! Really admire you!
Can you send your QQ number or mailbox to me via private message, because I'm afraid that if you don't come to the forum, the forum will lose a lot of color.
Floor 11 Posted 2004-04-28 00:00 ·  中国 山西 运城 联通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re: walu:

  Received your message. I wanted to reply in the message, but there's a word limit on this site. So I'll just post it here, hope you can see it.

---------------------------------------
  I rarely use QQ or other instant messaging software. You can contact me via email. The address can be found in the email button prompt above this post or in my personal information. That's my commonly used email box.

  Glad to have helped you, and I also hope to continue communicating with you. But please don't call me teacher in the future. Mainly because I can't bear the "old" word. Making friends with people, especially with friends who have the same hobbies and passions, has always been the biggest reason for me to persist here. So I'm very happy to be friends with you, and other friends are also welcome to contact me.

  Regarding DOS, although I have studied it for a long time, I have more and more deeply experienced the feeling of "life is finite but knowledge is infinite". There are too many knowledge I haven't mastered, even the batch processing programming that I love the most. So don't think how low your foundation is, because when facing a towering mountain, a tall climber is not much closer to the peak than a short climber.

  As for my native place, it's strange. Where did you get the idea that I'm from Guangdong? Did I ever speak Cantonese?
---------------------------------------


※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 12 Posted 2004-04-29 00:00 ·  中国 辽宁 朝阳 联通
铂金会员
★★★★
痴迷DOS者
Credits 5,798
Posts 1,924
Joined 2003-06-20 00:00
23-year member
UID 5583
Gender Male
From 金獅電腦軟體工作室
Status Offline
To willsort:
I also really want to be friends with you. I hope we can communicate more in the future. I really admire your ability in batch script writing and I really want to ask you for advice. Can you be my friend?
Thank you in advance.
熟能生巧,巧能生精,一艺不精,终生无成,精亦求精,始有所成,臻于完美,永无止境!
金狮電腦軟體工作室愿竭诚为您服务!
QQ群:8393170(定期清理不发言者)
个人网站:http://www.520269.cn
电子邮件:doujiehui@vip.qq.com
微信公众号: doujiehui
Floor 13 Posted 2004-05-01 00:00 ·  中国 黑龙江 哈尔滨 联通
初级用户
Credits 183
Posts 15
Joined 2003-07-07 00:00
23-year member
UID 6493
Gender Male
Status Offline
Program <YES
YES is a file, in text format, press Y to enter

I don't know if this is feasible, this is how I solved it in all cases



Floor 14 Posted 2004-05-01 00:00 ·  中国 黑龙江 哈尔滨 联通
初级用户
Credits 183
Posts 15
Joined 2003-07-07 00:00
23-year member
UID 6493
Gender Male
Status Offline
Program <YES
YES is a file, text format, Y to return

I don't know if this is feasible, all I encountered are solved like this




Open attachment
Floor 15 Posted 2004-05-01 00:00 ·  中国 上海 鹏博士宽带
高级用户
★★
zhri
Credits 665
Posts 153
Joined 2004-02-23 00:00
22-year member
UID 18241
Gender Male
Status Offline
Forum Jump: