Next Previous Up Top Contents Index

9.4 The OPERATING-SYSTEM module

run-application

Function

Summary

Launches an application using the specified name and arguments.

Signature

run-application command #key minimize? activate? 
                              under-shell? inherit-console? 
  => status 

Arguments

command
An instance of <string>.

minimize?
An instance of <boolean>.

activate?
An instance of <boolean>.

Values

status
An instance of <integer>.

Library

system

Module

operating-system

Description

Launches an application using the name and arguments specified in command. Using this function is equivalent to typing the command in a MS-DOS window. The return value is the exit status returned by the application.

If the minimize? keyword is #t, the command's shell will appear minimized. It is #f by default.

If the activate? keyword is #t, the shell window becomes the active window. It is #t by default.

If the under-shell? keyword is #t, an MS-DOS shell is created to run the application; otherwise, the application is run directly. It is #f by default.

If the inherit-console? keyword is #t, the new application uses the same console window as the current application; otherwise, the new application is created with a separate console window. It is #t by default.

See also

exit-application, page 185


System and I/O Reference - 31 MAR 2000

Next Previous Up Top Contents Index