Re: How to make VB wait until Shell process is finished
From: Galen Somerville (galen_at_surewest.net)
Date: 08/21/04
- Next message: MikeD: "Re: Can a compiled vb6 (not .net) recognize if it is already running?"
- Previous message: Ivan Debono: "pcode vs native code"
- In reply to: John Smith: "How to make VB wait until Shell process is finished"
- Next in thread: Larry Rebich: "Re: How to make VB wait until Shell process is finished"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: MikeD: "Re: Can a compiled vb6 (not .net) recognize if it is already running?"
- Previous message: Ivan Debono: "pcode vs native code"
- In reply to: John Smith: "How to make VB wait until Shell process is finished"
- Next in thread: Larry Rebich: "Re: How to make VB wait until Shell process is finished"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|