中国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-10 02:31
47,811 topics / 349,897 posts / today 2 new / 48,255 members
DOS批处理 & 脚本技术(批处理室) » (Closed) How to cancel the arbitrary key wait in the partition backup and restore tool ImageIt
Printable Version  3,047 / 23
Floor1 walu Posted 2004-04-26 00:00
高级用户 Posts 201 Credits 916
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 ]
Floor2 Tamm Posted 2004-04-26 00:00
中级用户 Posts 64 Credits 397
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
Floor3 walu Posted 2004-04-26 00:00
高级用户 Posts 201 Credits 916
It itself does not provide the /y switch. According to your method, ECHO Y | program name also doesn't work. What should I do?
Floor4 walu Posted 2004-04-26 00:00
高级用户 Posts 201 Credits 916
It itself does not provide the /y switch. According to your method, ECHO Y | program name also doesn't work. What should I do?
Floor5 龙王 Posted 2004-04-26 00:00
银牌会员 Posts 334 Credits 1,186
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
Floor6 Tamm Posted 2004-04-27 00:00
中级用户 Posts 64 Credits 397
re: walu

I tried many methods for testing, but none worked.

At my wits' end...


Floor7 walu Posted 2004-04-27 00:00
高级用户 Posts 201 Credits 916
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
Floor8 walu Posted 2004-04-27 00:00
高级用户 Posts 201 Credits 916
The execution format of this program is as follows:
it /status all
Floor9 willsort Posted 2004-04-27 00:00
元老会员 Posts 1,512 Credits 4,432
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
Floor10 walu Posted 2004-04-27 00:00
高级用户 Posts 201 Credits 916
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.
Floor11 willsort Posted 2004-04-28 00:00
元老会员 Posts 1,512 Credits 4,432
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?
---------------------------------------


Floor12 Kinglion Posted 2004-04-29 00:00
铂金会员 Posts 1,924 Credits 5,798 From 金獅電腦軟體工作室
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.
Floor13 huaqingyuan Posted 2004-05-01 00:00
初级用户 Posts 15 Credits 183
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



Floor14 huaqingyuan Posted 2004-05-01 00:00
初级用户 Posts 15 Credits 183
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
Floor15 zhri Posted 2004-05-01 00:00
高级用户 Posts 153 Credits 665
1 2  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023