Computer Hope
Software => Computer programming => Topic started by: on December 31, 1969, 05:00:00 PM
-
-
-
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.