000Steve000
IS-IT--Management
Why does -
Return = WshShell.Run("notepad", 1, true)
return a '0' and wait for notepad to close before executing the next line of script, but -
Return = WshShell.Run("explorer", 1, true)
return a 1 and continues the rest of the script without waiting for explorer to end? Explorer is not the only program I have found that allows WshShell.Run to apparently ignore the WAIT.
Return = WshShell.Run("notepad", 1, true)
return a '0' and wait for notepad to close before executing the next line of script, but -
Return = WshShell.Run("explorer", 1, true)
return a 1 and continues the rest of the script without waiting for explorer to end? Explorer is not the only program I have found that allows WshShell.Run to apparently ignore the WAIT.