Runs a program as a normal window.


Run (program-name, parameters)


(s) program-name the name of the desired .EXE, .COM, .PIF, .BAT, .CMD file, or a data file.

(s) parameters optional parameters as required by the application.


(i)  @TRUE if the program was found; @FALSE if it wasn't.


Use this command to run an application.

If the drive and path are not part of the program name, the current directory will be examined first, followed by the Windows and Windows System directories, and then the DOS path will be searched to find the desired executable file.

If the "program-name" has an extension other than .EXE, .COM, .PIF, .BAT or .CMD, it will be run with the associated application. When this happens, any "parameters" you specified are ignored.



Run("notepad.exe", "abc.txt")

Run("mspaint.exe", "pict.bmp")
See Also:

RunShell, AppExist, RunHide, RunIcon, RunWait, RunZoom, RunWithLogon, ShellExecute WinClose, WinExeName, WinWaitClose