You are right, I was thinking of the OS-9 similar redirections. DOS uses >> for append.
In my example, dothis.bat is the batch file.
promansr.txt is a text file full of the expected responses to prompts, one response per line.
e.g. (I put the question over to the right. it is not part of the file)
y (are you sure?)
n (send to printer?)
(Press ENTER to continue.)
y (Replace the file? y/n/c=cancel)
digester.txt takes all of the output and "digests" it. You need to remove the file between runs of the batch file. You can do this by calling another batch file which deletes the file (and the two batch files could delete each other's files).
ECHO OFF
this command as the first line of a batch file also removes a lot of queries.
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
Offline 3,314 posts
since Jan 2007