Solved

Manage a console application from batch file

Posted on 2007-03-26
1
464 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
[X]
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
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

726 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