Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Manage a console application from batch file

Posted on 2007-03-26
1
462 Views
Last Modified: 2010-05-18
Hi,

I need to execute an console application with automation. So I want to give inputs from a batch file.

It will be like this.

1. My batch file must start the console program (myconsole.exe)
2. Wait for the welcome mesage and then give the first input
(Program ask for the second)
3. Batch will give the second input
4. Then program ask for a second question like "do you want to replace file" and bacth must enter "R" to console as answer.
5. Program will do job and finished. If it gives error my batch file must log this with date.

If any clarification needs write it.

Thanks.  

0
Comment
Question by:karanba
1 Comment
 
LVL 67

Accepted Solution

by:
sirbounty earned 500 total points
ID: 18791826
start myconsole.exe
will start the program...not sure how you'll determine what the welcome message is from a batch file?  And what do you mean by first input, second input?

Do you have choice command on your system?

0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You may have already been in the need to update a whole folder stucture using a script. Robocopy does it well and even provides a list of non-updated files in a log (if asked to). Generally those files that were locked by a user or a process by the …
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question