Has Anyone tackled the Shell and Wait Function? 
Author Message
 Has Anyone tackled the Shell and Wait Function?

Quote:

> Path:

news.pi.net!news.sara.nl!news.nic.surfnet.nl!howland.reston.ans.net!news-e1a.megaweb.com!n
ewstf01.news.aol.com!newsbf02.news.aol.com!not-for-mail
Quote:

> Newsgroups: comp.lang.basic.visual.misc
> Subject: Re: Has Anyone tackled the Shell and Wait Function?
> Date: 27 Nov 1995 08:06:03 -0500
> Organization: America Online, Inc. (1-800-827-6364)
> Lines: 5



> NNTP-Posting-Host: newsbf02.mail.aol.com
> X-Newsreader: AOL Offline Reader

> Someone else's solution to this (in VB3) is to check the task list and
> have it break once the shelled program is complete.

> Hope this helps.
> Paul

 Hello Eric,

The september 1995 issue of Visual Bascic Programmers Journal covers exactly what you want
on page 111, it's "An enhanced ShellAndWait function wich uses the WinExec API to start an
application but expands on Shell's usefulness by supporting als possible ShowWindow
styles.
ShellAndWaite also waits until the spawned application terminates before retrurning
control to your program"

Hope this information helps   (You could consider a subscription on VBPJ.....)

Gerrit.



Wed, 20 May 1998 03:00:00 GMT  
 Has Anyone tackled the Shell and Wait Function?

-snip-

Quote:
>The september 1995 issue of Visual Bascic Programmers Journal covers exactly what you want
>on page 111, it's "An enhanced ShellAndWait function wich uses the WinExec API to start an
>application but expands on Shell's usefulness by supporting als possible ShowWindow
>styles.
>ShellAndWaite also waits until the spawned application terminates before retrurning
>control to your program"
>Hope this information helps   (You could consider a subscription on VBPJ.....)
>Gerrit.

        Thank you very much for that refrence to VBPJ, I seemed to have missed
that article when I read that issue.  There is also a very good
article on how to do this is the FAQ as well.  It includes changing
the icon form the standard DOS icon to something else.  I put it into
one of my programs and it is working great (the same procedure was on
the DevNet CD).  
        The one problem I have with shell Apps is that I am very concerned
about people deleting my PIF file.  Is there a way under Win3.1 or WFW
to create a PIF through code??  I see that it can be done under Win95,
but I did not see a 16bit method.

        Chris Thorson



Wed, 20 May 1998 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Has Anyone tackled the Shell and Wait Function?

2. Wait Shell function ?

3. Question on Waiting for Shell Function to complete

4. Shell - Wait for shelled app to load then execute next line of code

5. Shell Function not shelling under Windows NT.

6. Having Trouble with Shell in VB

7. Is anyone interested in having those new nifty toolbars

8. Is anyone interested in having those new nifty toolbars

9. having memory problems with Turbo BASIC Shell command

10. anyone else having this problem?

11. Waiting.......waiting.....waiting....

12. Is Anyone Having Problems With The Toolbar Control?

 

 
Powered by phpBB® Forum Software