Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com 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

1 Answer 1

(
  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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.