Wait for Shell Call to Complete

Category:
System/API
Type:
Snippets
Difficulty:
Advanced
Author:
Mrugendra Bhure

Version Compatibility: Visual Basic 6

More information:
The following function provides a replacement for shell() function, the advantage is that it does not return until the command has finished its execution.

NOTE: Put this code in a module.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: