|Liberty BASIC Help Online
RUN s$, mode
RUN StringExpr1 [, mode ]
This command runs external programs. StringExpr1 should represent the full path and filename of a Windows or DOS executable program, a Liberty BASIC *.TKN file, or a *.BAT file. This is not a SHELL command, so you must provide the name of a program or batch file, not a DOS command (like DIR, for example). Execution of an external program does not cause the calling Liberty BASIC program to cease executing.
Here are two examples:
' run Microsoft's QBASIC
RUN "WINFILE.EXE", SHOWMAXIMIZED
' run the File Manager maximized
RUN "WINHLP32 LIBERTY3.HLP"
'run winhlp32 with the Liberty BASIC helpfile loaded
RUN "NOTEPAD NEWFOR302.TXT", MINIMIZE
'run notepad minimized with a textfile loaded
Notice in the second example you can include an additional parameter. This is because it runs a Windows program. Here is a list of the valid parameters we can include when running Windows programs:
SHOWNORMAL (this is the default)
Copyright (C) 2003 Shoptalk Systems
Liberty BASIC - http://www.libertybasic.com/