Solved

Manage a console application from batch file

Posted on 2007-03-26
1
461 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

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…
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

776 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