steen,
the windows API call
WaitForSingleOb ject
waits for a process before continuing.
not exactly trivial as there is a few structures and other API calls:
CreateProcessA, Closehandle etc.
plenty of examples on the net (google for "WaitForSingleO bject Visual
Basic")
if you cant find anything suitable I'll dig out some code.
HTH
Al.
VB declare:
Public Declare Function WaitForSingleOb ject Lib "Kernel32" (ByVal hProcess
As Long, ByVal dwMilliseconds As Long) As Long
"Steen Gellett" <HejMedDig@NoSp am.Net> wrote in message
news:41c416c9$0 $307$edfadb0f@d read12.news.tel e.dk...[color=blue]
> How can I make a program halt, so when shell command is finished my[/color]
program[color=blue]
> continues, but as long as the shell is running it must be on "hold" ??
>
>[/color]
"Alan Barker" <AlanDOTBarker@ bcs.org> skrev i en meddelelse
news:cq1bd1$s5i $1@sparta.btint ernet.com...[color=blue]
> steen,
> the windows API call
> WaitForSingleOb ject
> waits for a process before continuing.
>
> not exactly trivial as there is a few structures and other API calls:
> CreateProcessA, Closehandle etc.
> plenty of examples on the net (google for "WaitForSingleO bject Visual
> Basic")
>
> if you cant find anything suitable I'll dig out some code.[/color]
VBnet provides Intermediate and Advanced Win32 API code for VB developers. Comprehensive Code, FAQ, Developers Resources & News, alphabetical API/Type/Constant/Method Index, along with the largest Visual Basic-related links list on the net.
VBnet provides Intermediate and Advanced Win32 API code for VB developers. Comprehensive Code, FAQ, Developers Resources & News, alphabetical API/Type/Constant/Method Index, along with the largest Visual Basic-related links list on the net.
VBnet provides Intermediate and Advanced Win32 API code for VB developers. Comprehensive Code, FAQ, Developers Resources & News, alphabetical API/Type/Constant/Method Index, along with the largest Visual Basic-related links list on the net.
The difference between the first two is the first uses CreateProcess to
start the other app, while the second uses VB's Shell method.
--
"Steen Gellett" <HejMedDig@NoSp am.Net> wrote in message
news:41c416c9$0 $307$edfadb0f@d read12.news.tel e.dk...
: How can I make a program halt, so when shell command is finished my
program
: continues, but as long as the shell is running it must be on "hold" ??
:
:
"Steen Gellett" <HejMedDig@NoSp am.Net> wrote in message
news:41c464d9$0 $250$edfadb0f@d read12.news.tel e.dk...
:
: "Randy Birch" <rgb_removethis @mvps.org> skrev i en meddelelse
: news:o4SdnVo_E9 JazFncRVn-ig@rogers.com.. .
: > See :
: > http://vbnet.mvps.org/code/faq/waitforsingleobject.htm
: > http://vbnet.mvps.org/code/faq/waitforsingleobject2.htm
: > http://vbnet.mvps.org/code/faq/getexitcprocess.htm
: >
: > The difference between the first two is the first uses CreateProcess to
: > start the other app, while the second uses VB's Shell method.
: > --
:
: I took no'2 ............gre at ( very short ) code for a very simple task,
: all other code I have seen involved 50-100 lines of code !!!!
:
:
"Randy Birch" <rgb_removethis @mvps.org> skrev i en meddelelse
news:Sv-dncMmO60E-lncRVn-sQ@rogers.com.. .[color=blue]
> The others allow you to do more, if required.
>[/color]
I just needed to "halt" my program........ ..no more, no less........thx
[color=blue]
> --[/color]
Comment