Jump to content


.bat (what is the command to press enter)

  • Please log in to reply
3 replies to this topic

#1 snjflame


    Young Padawan

  • Members
  • Pip
  • 4 posts

Posted 27 January 2009 - 10:08 AM

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 !

#2 austen


    P2L Jedi

  • Members
  • PipPipPip
  • 910 posts
  • Location:Montana, US
  • Interests:Web design, snowboarding (lots of it), Computer science related.

Posted 27 January 2009 - 01:32 PM

So... what are you trying to do (why do you need the password)? Your question is a bit vague, please elaborate.


#3 MyFlash13


    Young Padawan

  • Members
  • Pip
  • 209 posts
  • Gender:Male
  • Location:Toronto,Canada

Posted 29 January 2009 - 02:46 PM

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:


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.kanasolut...=...=2&utilid=5

#4 snjflame


    Young Padawan

  • Members
  • Pip
  • 4 posts

Posted 29 January 2009 - 03:46 PM

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 !

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users