Run("Notepad.exe") #open notepad.
WinWait("Untitled-Notepad","",5) #waitwindow Untitled-Notepad for 5 Secs.
Run("Notepad.exe MyFile.txt") #open file MyFile.txt on present dirctory.
Run("Notepad.exe", "", @SW_MAXIMIZE) #open notepad with maxsize.
Run(@ComSpec & " /k dir C:/WINDOWS/system32") # /k is to keep window after excute the cmd,/c is to shutdown window, & is substring. excute dir c:/WINDOWS/system32
Run(@ProgramFilesDir & "/Internet Explorer/IEXPLORE.EXE www.google.com") #open website www.google.com
Run("explorer.exe /e,d:/") #open file system,list the directory D
WinActive("window'sname") #active a window
WinClose("window") #close a window