|
tagaye
初级用户
 
积分 32
发帖 11
注册 2008-4-26
状态 离线
|
『楼 主』:
如何设默认回车命令
使用 LLM 解释/回答一下
通常情况下为 /y
但并不合适我现在碰到的情况所用
我在DOS下运行一个程序
出现
date : 20071201 》这里要按回车
(Y/N):N 》 这里要按Y
要如何用批处理来 默认这两步
Usually it's /y
But it's not suitable for the situation I'm encountering now
I run a program under DOS
And it appears
date : 20071201 》Need to press Enter here
(Y/N):N 》Need to press Y here
How to use batch processing to default these two steps
|
|
2008-5-19 10:50 |
|
|
huahua0919
银牌会员
    
积分 1608
发帖 780
注册 2007-10-7
状态 离线
|
|
2008-5-19 11:05 |
|
|
tagaye
初级用户
 
积分 32
发帖 11
注册 2008-4-26
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
我的意思是
运行12.exe
出现 date:20080519 默认是当前时期 按回车后出现
(Y/N) :N 默认是N 按Y后
继续运行这个程序的后半段
我现在省略回车和Y 这两步用批处理来完成
Last edited by tagaye on 2008-5-19 at 11:24 AM ]
What I mean is: run 12.exe. There appears date:20080519 (default is the current date). After pressing Enter, there appears (Y/N): N (default is N). After pressing Y, continue to run the second half of this program. Now I omit these two steps of pressing Enter and Y, and use a batch file to complete it.
Last edited by tagaye on 2008-5-19 at 11:24 AM ]
|
|
2008-5-19 11:23 |
|
|
huahua0919
银牌会员
    
积分 1608
发帖 780
注册 2007-10-7
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
我也不知道你的意思是运行12.exe程序后才出现的这样的问题
那就是程序的问题了
I don't know if the problem occurs after running the 12.exe program. Then it's a problem with the program.
|
|
2008-5-19 11:31 |
|
|
tagaye
初级用户
 
积分 32
发帖 11
注册 2008-4-26
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
是这样的
运行12.exe 后会出现 date:20080519 按回车或输入新日期后按回车
然后 Y/N 按Y 继续运行该程序的后半段 N中断
以上两部都是运行该程序后必须要设定的 一般来讲我不需要重设日期
默认日期就可 也不会需要中断
现在就是想做个批处理来默认这两步
请问要怎么做
情况比较类似于
比如copy 命令 如以有同名文件存在 可用/y 参数来完成
谢谢 不胜感激
This is like this. After running 12.exe, there will be date:20080519. Press Enter or input a new date and then press Enter. Then Y/N. Press Y to continue running the second half of the program, and N to interrupt. The above two steps are both necessary settings after running the program. Generally speaking, I don't need to reset the date. The default date is okay, and there won't be a need to interrupt. Now I just want to make a batch processing to default these two steps. How should I do it? The situation is relatively similar to, for example, the copy command. If there is an existing file with the same name, the /y parameter can be used to complete it. Thanks, I'm very grateful.
|
|
2008-5-19 12:09 |
|
|
HAT
版主
       
积分 9023
发帖 5017
注册 2007-5-31
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
echo 2008-05-19 | 12.exe
另,是否支持/y开关,取决于你的12.exe
echo 2008-05-19 | 12.exe
Also, whether it supports the /y switch depends on your 12.exe
|

 |
|
2008-5-19 12:10 |
|
|
qgscrosswing
新手上路

积分 4
发帖 2
注册 2008-7-30
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
在前面加“echo y|”应该可以把
Adding "echo y|" in front should work.
|
|
2008-7-30 16:55 |
|