I have a script that opens a vb.net clickonce app. I need the script to wait until the app is updated and running before doing anything, Now I have a wait in there but depending on a users machine, my delay is either too long or too short. I would like to be able to check processes running. Anyone else doing this? Code Below.
So instead of "autECLSession.autECLPS.Wa
it 1300" I want something like wait till myApp.exe is running.
Dim objShell : Set objShell = CreateObject("WScript.Shell")
UserDesktopProgram = objShell.ExpandEnvironmentStrings("%UserProfile%") & "\Start Menu\Programs\AiF\Op.appref-ms"
objShell.Run chr(34) & UserDesktopProgram & chr(34)