| Real'sHowTo |
|
|
Custom Search
|
| Real'sHowTo |
|
|
Custom Search
|
Dim WSHShell
Set WSHShell = WScript.CreateObject("WScript.Shell")
' open maximized and wait
WSHShell.Run "notepad.exe", 3, true
' open minimized and wait
WSHShell.Run "notepad.exe", 2, true
' open normal and don't wait
WSHShell.Run "notepad.exe", 1, false
Set WSHShell = Nothing
WScript.Quit(0)
Written and compiled by Réal Gagnon ©1998-2013
[ home ]