Re: How to make VB wait until Shell process is finished

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Galen Somerville (galen_at_surewest.net)
Date: 08/21/04


Date: Fri, 20 Aug 2004 19:00:57 -0700


"John Smith" <smith@nomail.juno.com> wrote in message
news:eQFxA7xhEHA.356@tk2msftngp13.phx.gbl...
> I have a program written in C which outputs a text file and we are using
VB
> to write a GUI front-end to wrap around that C program and process the
text
> file.
>
> VB's "shell" command would work fine but it does not wait for the other
> application to finish (i.e. the text file may not exist when VB
continues).
>
> (1) Are there any other work-arounds that I can use to avoid developing a
> GUI using Visual C++ ?
>
> (2) How do I make a VB program stop and wait for a shell process to
> complete?
>
> Is there any clever way using the Windows API to call the "start /wait" or
> (3) maybe I could re-compile the VC program as a DLL to call from VB?
>
> Any ideas? Thanks for any ideas you can offer.
>
> ADthanksVance
> -Dan.
> (please post to group since my email is saturated with spam).
>
>
Rearrange some words in your question and you have ShellandWait.

(always reply to group)

Galen



Relevant Pages

  • How to make VB wait until Shell process is finished
    ... to write a GUI front-end to wrap around that C program and process the text ... How do I make a VB program stop and wait for a shell process to ... maybe I could re-compile the VC program as a DLL to call from VB? ...
    (microsoft.public.vb.general.discussion)
  • Re: Wrapping A Shell
    ... since the implementation is in Python, I figured I'd give it a shot. ... I want to "wrap" a shell process using popen inside of python program ...
    (comp.lang.python)