Thursday, September 2, 2010

Script for opening a Notepad file

A.
invokeapplication "C:\Windows\notepad.exe"

B.
Set ShellObject = CreateObject("WScript.shell")
ShellObject.run "notepad.exe"

C.
Set ShellObject = CreateObject("WScript.Shell")
ShellObject.run "cmd /K notepad.exe"
ShellObject = Nothing

D.
SystemUtil.Run "notepad.exe"

No comments:

Post a Comment