Hi!
I've been trying to create a batch file that passes text to a console application. In this case its an exe that trims a large .dat file to the start/stop time and date specified. It expects the file name, start, stop, and a y(es) response to start the cut. The script below works, but after submitting the final "y" response, the .exe terminates without even attempting to start the cut.
Can anyone see what could be wrong? Tried ping delays, pause, /wait - all to the same effect.
@echo Off
Set program=c:\rtdm_cutter.exe
(
echo 20121126_191613_09224_RTDM.BIN
echo 2012/11/25 15:00:00
echo 2012/11/25 15:15:00
echo y
) |start /realtime /B /wait %program%