How to tell the end of a shell



I have a VB6 program which runs shell which runs another program which in turn creates a file. As soon as I call the shell, I run a subroutine which essentially pauses the main program for a few seconds whilst the new file is created. I then use VB to open Word and read the newly created file.

This works fine when running from my hard disk but when I try to run it from a USB memory stick, the shell program takes several minutes to create the file.

I need to be able to pause the main program until the shell program has finished so I can then open the new file in Word.

Is there any way I can find out when the shell program has finished creating the new file?

Thanks
Chris
.



Relevant Pages

  • SIGKILL to pty master
    ... child forks and pauses, the grandchild pauses. ... shell on a pty. ...
    (comp.os.linux.development.apps)
  • Re: How to tell the end of a shell
    ... As soon as I call the shell, I run a subroutine ... which essentially pauses the main program for a few seconds whilst the ... I then use VB to open Word and read the newly ...
    (microsoft.public.vb.general.discussion)
  • Re: How to tell the end of a shell
    ... As soon as I call the shell, I run a subroutine ... which essentially pauses the main program for a few seconds whilst the ... I then use VB to open Word and read the newly ...
    (microsoft.public.vb.general.discussion)
  • Shell to Open Word Document
    ... I need to open a Word document from my VB6 program. ... Shell "C:\Program Files\Microsoft Office\Office\WINWORD.EXE ...
    (microsoft.public.vb.general.discussion)
  • Re: Closing 3rd party programs in VB6
    ... I was opening Google Earth through a VB6 program ... using the Shell (target as String) function, ... there was a just-as-easy function to close the same program? ...
    (microsoft.public.vb.general.discussion)