I need to run a pgm by reading inputs from a file.
For instance, abcd.exe i/p1 i/p2 -first execution
abcd.exe i/p2 i/p3
like that till abcd.exe i/pn-1 i/pn
these i/p's should be read from a file. I wanna implement it as : i am writing it as a pseudocode,
for %%a in (file.txt) do ( ...
set the value to a var.
next value to another var1.
perform abcd.exe var var1
var1=the third value.. nth value
is it possible to bring this out in batch scripts.
I am jus getting started with the batch scripting. It would be of great help if anybody finds me a solution for this,