リファレンス、WshShell オブジェクト、Run メソッド

Reg* メソッドは実行してレジストリが壊れたらいやなので、とばし

まんま

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "%windir%\notepad " & WScript.ScriptFullName

WScript.Echo "End"


まんま

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "%windir%\notepad " & WScript.ScriptFullName, 1, true

WScript.Echo "End"


まんま

Dim oShell
Set oShell = WScript.CreateObject ("WSCript.shell")
oShell.run "cmd /K CD C:\ & Dir"
Set oShell = Nothing