Execute a Process and Wait Until it Finishes (VB.NET)
Category:C#, VB.NET, ASP.NET
Author:Intelligent Solutions Inc.
Version Compatibility: Visual Basic.NET
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.