Since the program is calling for data, all that needs to be done is to redirect the STDIN device (the keyboard) to a file. And a little smoke and mirrors of course
@echo off
for /f "tokens=1-2 delims=. " %%a in ('dir /b /s path\*.dat') do (
echo %%a.%%b > answer.dat
echo %%a.out >> answer.dat
echo samplingrate >> answer.dat
echo timeconstant >> answer.dat
echo signalground >> answer.dat
echo startsec >> answer.dat
echo endsec >> answer.dat
path\rmovave < answer.dat
)
How does it work?
1) gets a list of all the input files; the *.dat is the filter. (please tell me they're in the same directory)
2) sets up responses to program queries
3) runs program using redirected STDIN device, the answer.dat file
Output files will have same name as input file with a .out extension. Change if need be.
You need to fixup path\ and *.dat Make sure the path\ points to the input and output files and the filter matches your input file extensions; Also put real values for sampling rate thru endsec and fixup the path\ to the rmovave program.
With any luck all your input files will be processed with no input from you.
Good luck.