Discussion Locked

Help with batch file

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I'm a college student who needs to write a batch file to automate formatting a floppy. The only problem I have is the final question: Do you want to format another?

How can write a batch file to automatically put in no for this answer?

Any help would be much appreciated.

Thank You

1 reply

by jmcorn01

Create a text file with just the letter "N" and a carriage return. When you invoke the batch file from the command line redirect input from that text file. - i.e.
C:\yourdir\yourbatch.bat < yournofile.txt

This discussion is closed to new replies.