VBS-Skriptentwurfsvorlage (als .VBS-Datei speichern).
Set WshShell = WScript.CreateObject("WScript.Shell") ' Create Shell object WshShell.Run "abc.exe", 9 ' Execute application WScript.Sleep 500 ' Wait 0.5s for its start WshShell.AppActivate "SpecialConsole" ' Set focus to console window WshShell.SendKeys "MyScript.bat" ' Type batch file name WshShell.SendKeys "" ' Press Enter key
Bearbeiten Sie nach Bedarf.