Wait for a Process to Finish with VBScript

Sometimes the .exe process exit directly after launched. In this case, it’s necessary to wait until the process .exe not be there anymore to validate that the command is executed correctly.

Here is a possibility to wait for a process to finish before continuing using VBScript.

In the following example, we wait the process notepad.exe does not exist anymore.