- #1
jelanier
- 67
- 1
I was just curious. I have a program that asks for input file name and output name when the console is executed. I needed to run it and automatically pass these file names. I found a way..
test.exe <files.tmp
where files.tmp has 2 lines. First line is name of input file, second is output file.
It works, and the exe runs without asking for file names. I tried it on several of my FORTRAN console exes and it works! It will pass whatever the exe asks for input.
Where does this come from? I was thinking unix, but it works in windows.
Any ideas?
Jim
test.exe <files.tmp
where files.tmp has 2 lines. First line is name of input file, second is output file.
It works, and the exe runs without asking for file names. I tried it on several of my FORTRAN console exes and it works! It will pass whatever the exe asks for input.
Where does this come from? I was thinking unix, but it works in windows.
Any ideas?
Jim