There are three options that spring to mind:
  • Detach the spybot process and let it run in the background don't bother to inform the user.
  • Detach the spybot process and let it run, give the user something to watch while it it running.
  • Don't detach the spybot process, give the user something to watch while it is running.


Of these the first is the best option of course. To detach a process use "RUN", not "SHELL". You might also need to use the DOS shell "START" command to force the process to detach.

If you want to detach the process and display information to your user, you will need to use one of the process tracking UDFs to monitor it.

If you want to halt the main script, then you must start a seperate "progress" script before you call the spybot process. Your main script will then need to signal the progress script to stop by using the registry or a file or it might simply kill the progress script.