Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scripting a Command Prompt Application

Status
Not open for further replies.

nlosc

Aerospace
Jul 29, 2004
4
I have a dos application that requires user interaction through an application specific command prompt after execution. I would like to "script" this application and the subsequent command line commands for the application.
I have heard perl or a batch file may help and I have read alot about them in the last few days. I know how to execute operating system commands in perl and batch. This will get the application started in a shell. But how do I issue the commands that go in the command for the application?
 
Replies continue below

Recommended for you

Build a text file with the answers to the applications prompts, one answer per line. Then when you start the application, redirect the input stream to the file like this:

c:\> aplication.exe <answers.txt

Richard Ay
COADE, Inc.
 
Thanks!!!

That worked like a charm.

And just think, the developer of the application was going to charge us $2,000 to make the application "scriptable".

I didn't even realize the win 2k redirection was so similar to UNIX.
 
Most of that functionality has been there since before Windows.

TTFN
 
As the old saying goes, "DOS is Boss".

;)

Richard Ay
COADE, Inc.
 
I was thinking CPM, actually; having never owned or used a UNIX machine ;-)

TTFN
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor