In the VB exe I am making I launch an exe and want to wait for it to return. However in the code that waits for the exe to finish running uses a processID. My problem is that I when i use the command Shell("nameofexe.exe") it launches the exe but does not show the window. (It is a minimized window) I then tried using Wscipt since I knew this would show the window.
Set WshShell = CreateObject("WScript.Shell")
installerId = WshShell.Run(".\Installer.exe")
However this presented the problem that WshShell.Run(".\Installer.exe") does not return a process Id. So if anyone can tell me how to either get the processId from Wscript.run or tell me how to make the window not be minimized when i run:
installerId = Shell(".\Installer.exe")
i would be very grateful and reward them the points. Thanks in advance.