Help - Search - Members - Calendar
Full Version: .bat (what is the command to press enter)
Pixel2Life Forum > Help Section > General Help
snjflame
IN COMMAND PROMPT:
Type a password for the user:
Retype the password to confirm:

how to create the Batch file (.bat) to answer those questions automatically .
i want to know the command that i can use to execute,

I hope some one with better knowledge with DOS can help me !
austen
So... what are you trying to do (why do you need the password)? Your question is a bit vague, please elaborate.

-austen
MyFlash13
To the best of my knowledge, a .bat file automatically "presses enter" after each line. So your BAT file would be very simple, like this:

CODE
password1
password1


That would be the same as typing in "password1", then hitting enter, and again typing "password1".

If that method doesn't work, you might need Kana SendKey or a similar program. Kana SendKey sends keys to whichever program is open (it can send any key on a keyboard, including letters, and the ENTER button). Basically, it can simulate you typing buttons on the keyboard.

More info: http://www.kanasolution.com/index.php?fid=...=2&utilid=5
snjflame
MyFlash13, thanks for the reply.


Actually Someone told me regarding this question that there is no batch file command to press the ENTER key during a prompt, and
the execution of the batch file commands is suspended until that prompt is answered.

Also another person told me to create a custom made app to do that, so i guess might be right,
thanks for the reply again, and by the way I don't know to use the KanaSendKey !
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.