Computer Hope

Software => Computer programming => Topic started by: on December 31, 1969, 05:00:00 PM

Title:
Post by: on December 31, 1969, 05:00:00 PM
Title: Need Help with DOS batch file ..
Post by: on December 31, 1969, 05:00:00 PM
Title:
Post by: arul20 on May 16, 2005, 10:46:54 AM
Hi I am writing a batch file to automatically run some commands by telnetting to a network device. Everything goes fine until the device asks for input from the user.

E.g "Press any key to continue .. "
     Or
   "Press enter to continue .. "

etc

The program then waits for the user input.

So I am forced to manually press the keyboard in order for the batch file to continue.

What I want to know is:

How do I simulate the "Enter" key press in my batch program?


P.S: I did googling today on this subject but they all recommend using the "CON" command with fc command. I am running windows 2000 and my DOS does not support the "CON" command.


Thanks for all the help in advance.