Have you made sure to use a txt editor like notepad (not word, etc) and entered 
the CRs in as ASCII?  Any difference if you change from .cmd to a .bat?

From: David Lum [mailto:[email protected]]
Sent: Wednesday, April 17, 2013 1:23 PM
To: NT System Admin Issues
Subject: Can you do this with .CMD?

Use a batch file to launch an application and then send two carriage returns to 
this app? I can do one, but not two. Running the program is asks for username 
(hitting ENTER it uses a default, which is desired), then when you hit <CR> it 
asks for a password.

My batch file looks like this:
programtorun < c:\windows\temp\answerfile.txt

Answerfile.txt contains
<carriage return>
Password <carriage return>

The app runs but sits and waits for the password, so it's only processesing the 
first <CR>. Surely this is a simple one? Some pipe command? Maybe I should get 
out my old DOS 5.0 book...

Please, no PoSh because I have tons of XP machines that need to run this...
David Lum
Sr. Systems Engineer // NWEATM
Office 503.548.5229 // Cell (voice/text) 503.267.9764


~ 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]<mailto:[email protected]>
with the body: unsubscribe ntsysadmin

~ 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