I am looking for batch program
-
I looking for a batch program where one could place the same program to be executed with its parameters (not arguments as we know it) several times. When the batch program is run, it would executed the program file automatically with its parameters(not arguments). I would like run the same program several times with different parameters. Does anyone perhaps know of such a batch program and where I could get hold of it. Thanks. louis
-
I looking for a batch program where one could place the same program to be executed with its parameters (not arguments as we know it) several times. When the batch program is run, it would executed the program file automatically with its parameters(not arguments). I would like run the same program several times with different parameters. Does anyone perhaps know of such a batch program and where I could get hold of it. Thanks. louis
Just in case someone wants to know the difference between arguments and parameters as mentioned in this question. Arguments are those variables that one passes to a subroutine, or for example, as in the old days when programming in C, main(int argc, char * argv[]). These values are passed before the program is executed. Parameters on the other hand are variables(inputs) required by a program during its execution, for example scanf() or getc() in C. Thanks again. Bamboo
-
Just in case someone wants to know the difference between arguments and parameters as mentioned in this question. Arguments are those variables that one passes to a subroutine, or for example, as in the old days when programming in C, main(int argc, char * argv[]). These values are passed before the program is executed. Parameters on the other hand are variables(inputs) required by a program during its execution, for example scanf() or getc() in C. Thanks again. Bamboo
So you have a command line program that prompts the user to type in their parameters at run time? You could just redirect the input from a text file rather than from the keyboard e.g. Myfile.exe arg1 arg2 -- Help me! I'm turning into a grapefruit! Phoenix Paint - back from DPaint's ashes!
-
So you have a command line program that prompts the user to type in their parameters at run time? You could just redirect the input from a text file rather than from the keyboard e.g. Myfile.exe arg1 arg2 -- Help me! I'm turning into a grapefruit! Phoenix Paint - back from DPaint's ashes!
benjymous wrote: You could just redirect the input from a text file rather than from the keyboard Assuming that the program is reading from standard input, you'd have: myprog.exe < file.dat
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow