Execute a Process and Wait Until it Finishes (VB.NET)

Category:
C#, VB.NET, ASP.NET
Type:
Snippets
Difficulty:
Beginning
Author:
Intelligent Solutions Inc.

Version Compatibility: Visual Basic.NET

More information:
This snippet will execute a process at the location specified by ProcessPath synchronously -- i.e., it will wait until the external process is closed before further execution in the calling app occurs. Example: ShellAndWait("Notepad.exe")

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

Declarations:

Code: