VBA sending/reading from a running program
- From: pwu@xxxxxxxxxxxxx
- Date: Thu, 24 Apr 2008 00:01:37 -0700 (PDT)
Hi,
I want to interact with a running program.
I am using VB6 equivalent of VBA (VBA Access).
I will run the program with the shell command
I want to be able to read in the program what the program outputs -
program prompts.
I want to be able to write to the program sometimes in response to the
prompts similar to the UNIX
'expect' package.
Can someone please tell me how I read the output of a running program
and how to send text to the program?
Would I have to append a vbCR to the text string sent to the program?
Would someone be able to give me a sample code or a web site I can
consult?
Is the shell command the best way to start the command?
Thanks.
.
- Follow-Ups:
- Re: VBA sending/reading from a running program
- From: Matt Williamson
- Re: VBA sending/reading from a running program
- From: Nick Heisterfeld
- Re: VBA sending/reading from a running program
- Prev by Date: Re: Run-Time error '2004' Out of memory
- Next by Date: Re: VB/VBA File Open As when Filename has no extension
- Previous by thread: system.io.packaging
- Next by thread: Re: VBA sending/reading from a running program
- Index(es):
Relevant Pages
|