Relevant

A New Template for Joomla!

 

VBScript

VBscript to call another command

Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "C:\Windows\System32\wbadmin.exe delete systemstatebackup -keepversions:4 -quiet", 0, True
WshShell.Run "C:\Windows\System32\wbadmin.exe start systemstatebackup -backuptarget:D: -quiet", 0, True
Set WshShell = Nothing

 

The last argument says to wait until the command completes before continuing execution. To not wait, set it to False:

WshShell.Run "C:\Windows\System32\wbadmin.exe start systemstatebackup -backuptarget:D: -quiet", 0, False