MS DOS命令提示符 - 在一个命令中提供多个输入文件名(MS DOS Command Prompt - Providing several input file names in one command)
可能是基本问题,但要么我找不到答案,要么我不知道用什么词来搜索它们。
我有一个命令行程序,它在调用.exe后接受三个文件名。 我还有一个程序,用于运行该程序并自动测试它的输出。 所以情况是我正在运行一个程序,需要给出如何运行另一个程序的说明。 通过程序的约束,我需要提供一个执行模型的单行命令。 我的问题是:如何在MS DOS命令提示符下我可以1)执行程序和2)在一个命令中提供三个已知的文件名。
谢谢!
进一步的上下文:这两个程序不是由我编写的,而是两个命令行可执行文件。 “第一个”程序是一个通过命令提示符运行的简单模型。 第二个是校准程序,需要运行模型(可能数百次)来校准某些输入参数。 因此,我需要告诉校准程序如何运行模型。 但是,我需要在一行或批处理文件中执行此操作。
Probably basic question, but either I cannot find the answer, or I don't know what words to use to search for them.
I have a command line program which accepts three file names after the .exe has been called. I also have a program which is designed to run this program and test it's outputs automatically. So the situation is that I'm running one program and need to give it instructions on how to run the other. Through the constraints of the program I need to provide a one-line command that will execute the model. My question is: How in MS DOS command prompt can I both 1) execute the program and 2) provide the three known file names all in one command.
Thanks!
Further Context: These two programs are not written by me, rather they are two command-line executables. The "first" program is a simple model which runs through the command prompt. The second is a calibration program which needs to run the model (perhaps hundreds of times) to calibrate certain input parameters. Thus I need to tell the calibration program how to run the model. However I need to do that in one line, or a batch file.
原文:https://stackoverflow.com/questions/15841765
最满意答案
我想你每次玩家杀死一个怪物都可以检查这个。 也许你想听一个
KillMonster
事件。 您可以创建接口并在其他类中实现它。public interface KillMonsterEventListener { void onKillMonster (); }
然后在播放器类中,您可以调用一个方法来调用所有事件侦听器的
onKillMonster()
。 我想你知道怎么做。 只需创建一个KillMonsterEventListener
列表,并有一个方法,如:public void addKillMonsterEventListener (KillMonsterEventListener listener) { listeners.add (listener); //listeners is the list of KillMonsterEventListeners. }
I think you can check this every time the player kills a monster. Maybe you want to listen to a
KillMonster
event. You can create interfaces and implement that in your other class.public interface KillMonsterEventListener { void onKillMonster (); }
And then in the player class you can call a method to call
onKillMonster()
of all the event listeners. I think you know how to do that. Just create a list ofKillMonsterEventListener
s and have a method like:public void addKillMonsterEventListener (KillMonsterEventListener listener) { listeners.add (listener); //listeners is the list of KillMonsterEventListeners. }
相关问答
更多-
TCP/IP模型是一个________。[2023-10-02]
a -
正如文档清楚地说明了语法 INTERVAL '0 days' 是常量,也就是说,字符串必须是文字。 它不是像'0 days'::interval这样'0 days'::interval类型转换的语法,它允许您更改任意表达式的类型。 As the documentation states clearly, the syntax INTERVAL '0 days' is for constants, that is, the string has to be a literal. It is not a s ...
-
将任何设置为计划任务/作业都不应该是Web应用程序的责任。 该应用程序可以随时回收,甚至可以中断该工作。 这些类型的实现应该是Windows服务或服务器上某种基于任务的作业的责任。 简短的回答,不要在网络应用程序中这样做。 Having anything set as a scheduled task/job should not be the responsibility of a web app. The app could be recycled at any time and could even ...
-
下列中不属于面向对象的编程语言的是?[2022-05-30]
a -
MySQL:INTERVAL问题(MySQL: INTERVAL problems)[2023-10-17]
看到您发布的代码,您可能希望在确定没有行后立即返回。 if (!rdr.HasRows) { rdr.Close(); // EventLog.WriteEntry("IEReporter", "Database returned nothing", EventLogEntryType.Error, 234); return; // do this, or otherwise ski ... -
我想你每次玩家杀死一个怪物都可以检查这个。 也许你想听一个KillMonster事件。 您可以创建接口并在其他类中实现它。 public interface KillMonsterEventListener { void onKillMonster (); } 然后在播放器类中,您可以调用一个方法来调用所有事件侦听器的onKillMonster() 。 我想你知道怎么做。 只需创建一个KillMonsterEventListener列表,并有一个方法,如: public void addKillM ...
-
回调到$ interval函数(Callback to $interval function)[2024-01-30]
$interval返回一个承诺。 var loop = $interval(function () { // Do something great 10 times }, 1000, 10); loop.then(function(){ // To run after looping runAfterLoopFinishes(); } 在每次迭代之后, $interval承诺都会得到通知,但只能在最后一次之后解决。 $interval returns a promise. var loop ... -
间隔的翻译(Translation of interval)[2022-05-17]
我想不是。 抱歉。 日,月等是类型区间中的字段。 它将是英文的。 就像你不期望使用“vybrac”而不是选择:)但你可以在时间值中使用locale ,是的。 td=# set lc_time TO pl_PL; SET td=# SELECT to_char(to_timestamp (4::text, 'MM'), 'TMmon'); to_char --------- kwi (1 row) 所以可能只有选项是用波兰名称替换timestamp filealds值 I think no. sorry ... -
在给定的时间间隔内运行代码(Run a code in given time interval)[2023-04-25]
你可以使用计时器检出这篇文章。 int startin = 60 - DateTime.Now.Second; var t = new System.Threading.Timer(o => Console.WriteLine("Hello"), null, startin * 1000, 60000); You could check out this post using a timer. int startin = 60 - DateTime.Now.Second; var t = ne ... -
AngularJS(CoffeeScript):$ interval只运行一次(AngularJS (CoffeeScript): $interval only runs once)[2022-02-17]
$interval tick 500将转换为: $interval(tick(500)); 你需要的是: $interval tick, 500 这将成为: $interval(tick, 500); $interval tick 500 will transcompile to: $interval(tick(500)); What you need is: $interval tick, 500 Which will become: $interval(tick, 500);