|
ednykissyou
初级用户
 
积分 182
发帖 88
注册 2005-11-29
状态 离线
|
『楼 主』:
dos在下如何自动发送一个回车呀?
使用 LLM 解释/回答一下
dos在下如何发送一个回车呀?我用:start d:\the.exe打开the.exe这个文件后需要敲一下回车或者空格,我想dos能给我发送一个回车就好了
How to send a carriage return in DOS? I use: start d:\the.exe to open the the.exe file and then need to press a carriage return or space. I want DOS to send a carriage return for me.
|
|
2006-6-5 13:46 |
|
|
lhkyzh
初级用户
 
积分 34
发帖 12
注册 2006-6-4
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
这要看直接运行the.exe 需要按确定吧。
如果the.exe带有命令行乘数,那么看一下它的帮助
批处理本身没有这样的命令
AU3可以做到
This depends on whether you need to press OK when directly running the.exe.
If the.exe has command-line parameters, then take a look at its help.
Batch processing itself does not have such a command.
AU3 can do it
|
|
2006-6-5 14:29 |
|
|
DOSforever
金牌会员
     
积分 4639
发帖 2239
注册 2005-1-30
状态 离线
|
|
2006-6-5 18:36 |
|
|
tsenix
初级用户
 
积分 121
发帖 61
注册 2006-4-18 来自 HK
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
做一个batch档如何?
echo. > CR
start d:\the.exe < CR 或 type CR|start d:\the.exe
del CR
How about making a batch file?
echo. > CR
start d:\the.exe < CR 或 type CR|start d:\the.exe
del CR
|
|
2006-6-6 00:47 |
|
|
不得不爱
超级版主
         我爱DOS
积分 5310
发帖 2044
注册 2005-9-26 来自 四川南充
状态 离线
|
|
2006-6-6 13:09 |
|
|
bagpipe
银牌会员
     DOS联盟捡破烂的
积分 1144
发帖 425
注册 2005-10-20 来自 北京
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
唉,人家说的是回车,QUE1234567版主传个Y,呵呵
echo enter>cc
start d:\the.exe <cc
试试这个,如果不成只有用VBS的SENDKEYS来传递了
Hey, what people are talking about is pressing Enter. Moderator QUE1234567 pass a Y, heh echo enter>cc start d:\the.exe <cc Try this, if it doesn't work, only use VBS's SENDKEYS to pass it
|
|
2006-6-6 14:22 |
|
|
willsort
元老会员
         Batchinger
积分 4432
发帖 1512
注册 2002-10-18
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
Re bagpipe:
enter似乎也并不是回车吧。可以使用echo.向标准字符流发送一个回车符和一个换行符。但通常GUI程序会使用另外一套键盘识别机制,而不会接受标准字符流的I/O,所以echo的方法应该是无效的。所以需要知道the.exe的程序类型。
关于bagpipe:
输入似乎也不只是回车。可以使用echo.向标准字符流发送一个回车符和一个换行符。但通常GUI程序会使用另一套键盘识别机制,而不会接受标准字符流的I/O,所以echo的方法应该无效。所以需要知道the.exe的程序类型。
Regarding bagpipe:
Enter doesn't seem to be just a carriage return. You can use echo. to send a carriage return and a line feed to the standard character stream. But usually GUI programs use another set of keyboard recognition mechanisms and won't accept I/O of the standard character stream, so the echo method should be ineffective. So we need to know the program type of the.exe.
|

※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得! |
|
2006-6-6 19:37 |
|
|
ednykissyou
初级用户
 
积分 182
发帖 88
注册 2005-11-29
状态 离线
|
『第 8 楼』:
你说的两种可以举个例子么
使用 LLM 解释/回答一下
你说的两种可以举个例子么,这两个东东没有用过,不知怎么入手
Can you give an example of the two you mentioned? I haven't used these two things and don't know how to start.
|
|
2006-6-6 23:00 |
|
|
ednykissyou
初级用户
 
积分 182
发帖 88
注册 2005-11-29
状态 离线
|
『第 9 楼』:
DOSforever
使用 LLM 解释/回答一下
可以举个实例么,感恩啊
Can you give an example? Thanks a lot!
|
|
2006-6-6 23:02 |
|
|
ednykissyou
初级用户
 
积分 182
发帖 88
注册 2005-11-29
状态 离线
|
『第 10 楼』:
bagpipe,你说的对俺很高深,可以举个例子么
使用 LLM 解释/回答一下
VBS的SENDKEYS来传递?
咋过用呢,发送回车对我很重要,如果用其它软件来做有点不值,批处理在这里是最棒的,不过从来没有这方面的东东,各位大侠就帮帮忙啰
Use VBS's SENDKEYS to pass?
How to use it, sending Enter is very important to me. If using other software to do it is a bit not worth it, batch processing is the best here, but there has never been such a thing, please help me, great experts
|
|
2006-6-6 23:09 |
|
|
scriptor
银牌会员
    
积分 1187
发帖 555
注册 2006-12-21
状态 离线
|
|
2007-1-31 03:42 |
|
|
zybird
中级用户
  
积分 240
发帖 53
注册 2005-1-21
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
回车可以这样传送
echo.|start d:\the.exe
Pressing Enter can transmit like this
echo.|start d:\the.exe
|
|
2007-2-1 02:17 |
|