|
walu
高级用户
   
积分 916
发帖 201
注册 2003-5-4
状态 离线
|
『楼 主』:
(已结)如何取消分区备份还原工具ImageIt中的任意键等待
使用 LLM 解释/回答一下
在一个批处理里面,有一个程序执行它后都出现“Press any key to continue...”即要求按任意键才能继续执行后面的程序,我不想用手工按任意键,而想执行它后自动接着执行后面的程序,请问要怎样做?
---------- Edited by willsort ----------
修改原标题:批处理怎样跳过按任意键继续的提示?
本主题最新附件:ImageIt 3.1.06.01 免任意键等待版下载
it310601.rar (2005-10-25 23:09, 58.6 K)
---------- Edited by willsort ----------
Last edited by willsort on 2005-10-25 at 23:13 ]
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 ]
|
|
2004-4-26 00:00 |
|
|
Tamm
中级用户
  
积分 397
发帖 64
注册 2004-4-18
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
通常程序都提供类似于 /y /sure 这一类的开关以便使用“安静模式”运行。
如果实在没有这类参数,你可以试一下看用这个格式启动程序能不能解决问题:
ECHO Y | 程序名
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
|
|
2004-4-26 00:00 |
|
|
walu
高级用户
   
积分 916
发帖 201
注册 2003-5-4
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
它本身不提供/y开关,按你的方法ECHO Y | 程序名
也不生效,怎么办?
It itself does not provide the /y switch. According to your method, ECHO Y | program name also doesn't work. What should I do?
|
|
2004-4-26 00:00 |
|
|
walu
高级用户
   
积分 916
发帖 201
注册 2003-5-4
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
它本身不提供/y开关,按你的方法ECHO Y | 程序名
也不生效,怎么办?
It itself does not provide the /y switch. According to your method, ECHO Y | program name also doesn't work. What should I do?
|
|
2004-4-26 00:00 |
|
|
龙王
银牌会员
    
积分 1186
发帖 334
注册 2003-5-30
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
可以直接删除了批处理的pause行
在命令行前加rem或::也可以啊
如果用一定要执行pause,可以这样写
echo.|pause
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
|
|
2004-4-26 00:00 |
|
|
Tamm
中级用户
  
积分 397
发帖 64
注册 2004-4-18
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
re: walu
我想了很多办法测试,都不行。
技穷...
re: walu
I tried many methods for testing, but none worked.
At my wits' end...
|
|
2004-4-27 00:00 |
|
|
walu
高级用户
   
积分 916
发帖 201
注册 2003-5-4
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
这个问题有难度,呵呵,办法有二个:
1。需要调试该程序,找到相应指令执行跳转;
2。汇编编写一个程序模拟键盘按下,如何将编译后的程序加到批处理中。
这里应该不少人都会编程,哪个兄弟能出手帮忙呢?
附件是这个程序 打开附件
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
|
|
2004-4-27 00:00 |
|
|
walu
高级用户
   
积分 916
发帖 201
注册 2003-5-4
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
这个程序执行格式如下:
it /status all
The execution format of this program is as follows:
it /status all
|
|
2004-4-27 00:00 |
|
|
willsort
元老会员
         Batchinger
积分 4432
发帖 1512
注册 2002-10-18
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
RE walu:
walu 兄误我不浅,这与批处理何来关联?程序中采用16号中断直接读取键盘状态,而非读取字符,所以通过管道传送任何字符都是无用的。斟酌许久,还是直接用DEBUG把程序中的16号中断调用全部取消了。也许会引起一些问题,比如在提示按任意键重启系统时,可能会不等待按键而直接重启,还请 walu 兄测试一下。
打开附件
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:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得! |
|
2004-4-27 00:00 |
|
|
walu
高级用户
   
积分 916
发帖 201
注册 2003-5-4
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
willsort,真的感谢您!真的佩服您!
能否把你的QQ号码或信箱通过悄悄话告诉小弟,因为怕你不来论坛,这个论坛便失色不少。
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.
|
|
2004-4-27 00:00 |
|
|
willsort
元老会员
         Batchinger
积分 4432
发帖 1512
注册 2002-10-18
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
Re walu:
收到你的留言,本想留言回复,可惜本站有字数限制,索性贴在这里,希望你看得见吧。
---------------------------------------
我很少使用QQ或者其他即时通讯软件,与我联系可以通过电子邮件,地址可以在本帖上方的邮箱按钮提示或者的个人信息里找到,那是我常用的信箱。
很高兴能帮到你,也很希望继续与你交流;只是以后不用称我老师吧,主要是担不起那个"老"字啊。与人交友,特别是与有相同爱好和热情的朋友结交,一直是我在这里坚持的最大理由,所以很高兴与你成为朋友,也欢迎其它的朋友与我联系。
对于DOS,虽然我也学过不短的时间,但却越来越因此而深刻体会到“人生有涯而知无涯”的况味,有太多的知识我没有掌握,即使是我最爱好的批处理编程。所以不要觉得自己基础有多低,因为面对一座巍峨的高山,高个子的登山者并不比低个子的登山者更接近峰顶多少距离。
至于我的籍贯,很奇怪,你从哪里得知我是广东人呢?难道我曾经听我说过粤语吗?
---------------------------------------
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:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得! |
|
2004-4-28 00:00 |
|
|
Kinglion
铂金会员
       痴迷DOS者
积分 5798
发帖 1924
注册 2003-6-20 来自 金獅電腦軟體工作室
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
To willsort:
我也很想和你成为朋友,希望我们以后能多交流,我很佩服你批处理编写方面的能力,我很想向你请教.能交我这个朋友吗?
先谢谢你了.
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
|
|
2004-4-29 00:00 |
|
|
huaqingyuan
初级用户
 
积分 183
发帖 15
注册 2003-7-7
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
程序 <YES
YES为一个文件,文本格式,Y回车
不知这样是否可行,我遇到的都是这样解决的
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
|
|
2004-5-1 00:00 |
|
|
huaqingyuan
初级用户
 
积分 183
发帖 15
注册 2003-7-7
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
程序 <YES
YES为一个文件,文本格式,Y回车
不知这样是否可行,我遇到的都是这样解决的
打开附件
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
|
|
2004-5-1 00:00 |
|
|
zhri
高级用户
    zhri
积分 665
发帖 153
注册 2004-2-23
状态 离线
|
|
2004-5-1 00:00 |
|