Im trying to make my shell wait until an applications is done running. i thought there was a command called .bwaitonreturn=true but my script doesnt seem to like that :
Function InstallApp(Path) 'this shells and runs an application (our executables)
Dim WshShell
Set WshShell = CreateObject("WScript.Shell"
On Error Resume Next
wshshell.bWaitOnReturn = true
WshShell.Run Path
if err.number <> 0 THEN
msgbox "There was an error running a command." & vbcrlf & _
"Error : " & err.number & vbcrlf & _
"Description : " & err.description & vbcrlf & _
"Command : " & Path, vbcritical, "Error"
oform.hide
oform = nothing
wscript.quit
end if
end function
how do i get my script to take a break and wait until the application is closed?
Function InstallApp(Path) 'this shells and runs an application (our executables)
Dim WshShell
Set WshShell = CreateObject("WScript.Shell"
On Error Resume Next
wshshell.bWaitOnReturn = true
WshShell.Run Path
if err.number <> 0 THEN
msgbox "There was an error running a command." & vbcrlf & _
"Error : " & err.number & vbcrlf & _
"Description : " & err.description & vbcrlf & _
"Command : " & Path, vbcritical, "Error"
oform.hide
oform = nothing
wscript.quit
end if
end function
how do i get my script to take a break and wait until the application is closed?