[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Manage a console application from batch file

Posted on 2007-03-26
1
Medium Priority
?
469 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 1500 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

649 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