1.

Solve : .batch simulating user typing and pressing enter?

Answer»

Hi! I am with a program in Fortran that when executed ask the input FILE name, output file name and a parameter. But I have to do this for many files that have always the same names. So for this I am trying to make a “.bat” file to help me. So I need to know which command can simulate the user typing and pressing enter.
I tried the follow TEXT:

LSQM1.exe      
a00.txt            
b00.txt            
10
But it open the program but insists to ask the input file name—so just the first line is ok… Someone can help me??[ch12288]Please!!!
 :-?Does the Fortran prog read the command line, then prompt the user for input if nothing is supplied? If so, you could just supply the correct parameters. Do you have access to the Fortran SOURCE ? could you modify it to do this ?

If not, then I suggest you use VBSCRIPT, where you can PACK the keyboard buffer with keystrokes

GrahamArigato gosaimashita!!! Thank u very much!!!! :) :)



Discussion

No Comment Found