Solved

Manage a console application from batch file

Posted on 2007-03-26
1
457 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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

When you receive another warning that your shared drive is almost full and you have asked your users to clean out old files again and again, here is a single command that may help. This command will place all the files that have not been used rec…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now