Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have test.exe application which I run and it ask to enter password twice. In Unix I have seen this can be run using echo command for silent execution without editing the test.exe.

In Unix:

 echo -e "Password\nPassword"|test.ksh

Above command prompts for password twice and takes it through the echo command.

I want to do the same on DOS.

But I am getting a error like

 No console available for secure input 
 No console available for secure input 
 Can't spawn "cmd.exe": No such file or directory at / 
 Problem while processing the Password.
share|improve this question

migrated from Oct 9 '12 at 13:31

This question came from our site for professional and enthusiast programmers.

Do you have the source code for test.exe? – snibbets Oct 9 '12 at 5:59
  echo Password
  echo Password
) | test.exe
share|improve this answer
I tried that.. But it doesn't work too.. I guess it might be because of the password parameter.. I mean it is not visible from the console while we type. Also we cannot copy and paste password there. – user1728730 Oct 9 '12 at 5:10

You must log in to answer this question.