On Wed, Apr 17, 2013 at 4:23 PM, David Lum <[email protected]> wrote:
> Use a batch file to launch an application and then send two carriage returns
> to this app?

  Well, maybe.

> The app runs but sits and waits for the password, so it’s only processesing
> the first <CR>.

  And let me guess, the password doesn't echo, or maybe shows stars or
dots or something, normally?

  My guess is the app isn't using the standard input/output routines
for the password, so redirecting stdin like that doesn't matter for
password entry.

  Otherwise, your current code should work.  (Assuming when you say
"Answerfile.txt" contains "<carriage return>", you actually mean a
CR+LF, which is what Microsoft uses.)

  If this is indeed the problem, you'll need something more
sophisticated to fake the keystrokes.  Back in the old days of DOS,
there was a utility called KEYFAKE.EXE that would do that, but I don't
expect it would work under 'doze.  Maybe something like AutoIt3?

> Please, no PoSh because I have tons of XP machines that need to run this…

  If my guess is correct, PoSh will have the same problem.

-- Ben

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

Reply via email to