function, on a desktop, starts another Windows application or process. There is a related version for applications running on mobile devices
The string expression action is the name of the application or process to be started. Command line parameters may be included in this expression. If folder or file names contain blanks, then quotation marks (") must surround the names. In this case CSPro text strings can be surrounded by apostrophes (').
An optional set of three flags controls the way that the application is opened, and includes the following options:
|Program Control||nowait||The application is opened alongside CSPro. This is the default option.|
|wait||The application is opened and CSPro waits until it closes to resume program control.|
|stop||CSPro immediately closes and then opens the application. This is similar to what would occur if using the stop function with an argument of 1.|
|Window Size||normal||The application's window is opened in its normal state. This is the default option.|
|maximized||The application's window is opened in its maximized state.|
|minimized||The application's window is opened in its minimized state.|
|Window Focus||focus||The application is opened and immediately has focus (is "active"). This is the default option.|
|nofocus||The application is opened without focus.|
A combination of flags can be used, with each set separated by a comma.
The function returns a logical value of 1 (true) if the new application is started successfully and 0 (false) otherwise.
// opens the Windows calculator
// opens documentation in Text Viewer
execsystem(maketext('"%sTextView.exe" "C:\Survey\Helps.txt"', pathname(CSPro)), maximized, wait);
// open a website in Internet Explorer
execsystem(maketext('"%sInternet Explorer\iexplore.exe" "https://www.csprousers.org/forum"', pathname(ProgramFiles32)));