RUN Command Michael J. Mefford 1988 No. 2 (Utilities) Purpose: Executes .COM, .EXE, or .BAT files from any disk directory without requiring changing directories or specifying a path to the file. Format: RUN [/C|/S][d:][directory]filename [args] Remarks: Unless the optional directory parameter is specified, RUN defaults to a diskwide search to find the executable filename. Any additional arguments (args) that would normally be specified on the DOS command line may be added to the filename that RUN is called upon to execute. A drive specifier (d:) must be used if the file to be run is not on the current drive. During its search, any keypress with abort the operation of RUN.COM. RUN can either operate from the current directory (its default mode, designated by the optional /S switch) or it can change to the directory (/C) in which it finds the desired program before executing it. The /C option is required by programs such as WordStar, which can find their overlay files only when loaded from within the directory in which they are stored. The /C option is also required to run .BAT files under DOS 2.x (see Note below). Note: RUN overcomes the inability of DOS 2.x to handle .COM and .EXE files that are prefixed with a path. Batch files under DOS 2.x, however, still require RUN's /C option. If desired, the /C option can be made the RUN default mode, with /S as its selectable alternative. To make the change, put a copy of RUN in the same directory with DEBUG.COM, and enter the following commands: DEBUG RUN.COM E 15B 1 E 1E8 "C" W Q If you later upgrade your version of DOS and wish to reverse the process, use the same procedure with the following commands: DEBUG RUN.COM E 15B 0 E 1E8 "S" W Q ®MDBO¯®MDNM¯