I am still a newbie a VBScripting but I am trying to build a script that will install Office XP Sp3 and the 4 post SP3 patches. The script seems to work except it does not wait for the 1st command to complete before moving on to the next and so on thus making it fail. Is their a something i can add/change in my script below to make it wait till one process finishes before proceeding?
Set Wshshell=CreateObject("WScript.Shell")
WshShell.run """\\myserver\patches\office\OfficeXpSP3\exFullfile\ohotfix.exe"""
'a.close
Set Wshshell=CreateObject("WScript.Shell")
WshShell.run """\\myserver\Patches\Office\KB873379\ohotfix.exe"""
'a.close
Set Wshshell=CreateObject("WScript.Shell")
WshShell.run """\\myserver\Patches\Office\MS04028\ohotfix.exe"""
'a.close
Set Wshshell=CreateObject("WScript.Shell")
WshShell.run """\\myserver\Patches\Office\KB833858\ohotfix.exe"""
'a.close
Set Wshshell=CreateObject("WScript.Shell")
WshShell.run """\\myserver\Patches\Office\KB837253\ohotfix.exe"""
'a.close
As always, Thx
Set Wshshell=CreateObject("WScript.Shell")
WshShell.run """\\myserver\patches\office\OfficeXpSP3\exFullfile\ohotfix.exe"""
'a.close
Set Wshshell=CreateObject("WScript.Shell")
WshShell.run """\\myserver\Patches\Office\KB873379\ohotfix.exe"""
'a.close
Set Wshshell=CreateObject("WScript.Shell")
WshShell.run """\\myserver\Patches\Office\MS04028\ohotfix.exe"""
'a.close
Set Wshshell=CreateObject("WScript.Shell")
WshShell.run """\\myserver\Patches\Office\KB833858\ohotfix.exe"""
'a.close
Set Wshshell=CreateObject("WScript.Shell")
WshShell.run """\\myserver\Patches\Office\KB837253\ohotfix.exe"""
'a.close
As always, Thx