ms dos - MS DOS Command Prompt - Providing several input file names in one command -


probably basic question, either cannot find answer, or don't know words use search them.

i have command line program accepts 3 file names after .exe has been called. have program designed run program , test it's outputs automatically. situation i'm running 1 program , need give instructions on how run other. through constraints of program need provide one-line command execute model. question is: how in ms dos command prompt can both 1) execute program , 2) provide 3 known file names in 1 command.

thanks!

further context: these 2 programs not written me, rather 2 command-line executables. "first" program simple model runs through command prompt. second calibration program needs run model (perhaps hundreds of times) calibrate input parameters. need tell calibration program how run model. need in 1 line, or batch file.

i believe after calling "piping." output of 1 program feed input of another. expressed in 1 command line.

for example, dir produces sequence of lines , sort reads lines, sorts them , writes them out. so,

dir | sort

you can pipe many programs , pass arguments need.

dir | find "2013" | sort

edit: update based on comments.

if second program reads output of first can this.

first <filelist.txt | second

where filelist.txt text file 3 responses required first program. < means first not read typed instead read file.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -