Home / Software / Computer programming /
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic:  (Read 2018 times)

Guest
« on: December 31, 1969, 05:00:00 PM »

IP logged

Guest
« Reply #1 on: December 31, 1969, 05:00:00 PM »

IP logged
arul20
Guest
« Reply #2 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.


IP logged
Pages: [1] - (Top) Print 
Home / Software / Computer programming / « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.055 seconds with 18 queries.