MKMSGF %w%+( (R))* -B.c/!0@1 HqMPN U/W/Y 4os2h.msg HDisplay the internal commands, or prompt for a command. execute another command. Usage: ? ["prompt text" command] If no prompt text or command is given, ? displays a list of internal commands. If the prompt text or command is included, ? prompts before executing the specified command. HLoad or display the alias list, or define an alias. Usage: ALIAS [/P] [/R [d:][path]filename...] [name[=][value]] /P Pause after displaying each page /R Load an alias list from a file HChange the file or subdirectory attributes. Usage: ATTRIB [/A:[[-]rhsda] /D /P /Q /S -|+[AHRS]] [d:][path]filename... /A: Select files by attributes /D Modify subdirectory attributes /P Pause after displaying each page /Q Quiet mode /S Modify files in subdirectories +A Set archive attribute -A Clear archive attribute +H Set hidden attribute -H Clear hidden attribute +R Set read-only attribute -R Clear read-only attribute +S Set system attribute -S Clear system attribute HBeep the speaker. Usage: BEEP [frequency [duration] ...] The frequency is specified in Hertz, and the duration in 1/18th second intervals. No sound will be generated for frequencies less than 37 Hz, allowing you to insert short delays. The default value for frequency is 440 Hz; the default value for duration is 2. HCall a secondary batch file. Usage: CALL [d:][path]filename HTerminate all batch processing. Usage: CANCEL [value] If you enter a value, CANCEL will set the ERRORLEVEL to that value. HDisplay or change the current directory. Usage: CD [- | [d:][pathname] Entering CD with no argument or only a drive name will display the current directory. Entering CD and a pathname will change the current directory. You can switch to the previous directory by entering CD -. HChange the current disk drive and directory. Usage: CDD [- | d:]pathname You can switch to the previous drive and directory by entering CDD -. HDisplay or change the current system code page. Usage: CHCP [n] n New code page Entering CHCP with no argument displays the active code page. HDisplay or change the current directory. Usage: CHDIR [[d:][pathname] Entering CHDIR with no argument or only a drive name will display the current directory. Entering CHDIR and a pathname will change the current directory. You can switch to the previous directory by entering CHDIR -. HClear display, optionally to the specified colors. Usage: CLS [[BRIght] [BLInk] fg ON bg [BORder bc]] fg Foreground color bg Background color bc Border color Valid colors are Black, Blue, Green, Red, Magenta, Cyan, Yellow, and White. HSet the screen display colors. Usage: COLOR [[BRIght] [BLInk] fg ON bg [BORder bc]] fg Foreground color bg Background color bc Border color Valid colors are Black, Blue, Green, Red, Magenta, Cyan, Yellow, and White. HCopy or append one or more files. Usage: COPY [d:][path]source[+]...[/A /B] [[d:][path]target] [/A:[[-]rhsda] /A /B /C /F /M /N /P /Q /R /S /T /U /V] /A Copy in ASCII mode /A: Select files by attributes /B Copy in binary mode /C Copy only those files where the target is older than the source /F Fail if the source file has extended attributes and the target file system doesn't support extended attributes. /H Copy hidden and system files too /M Copy only those files with the archive bit set /N Don't actually perform the copy /P Confirm each file copy (Y or N) /Q Don't display filenames or totals /R Prompt before overwriting an existing file /S Copy subdirectories /T Only display totals (no filenames) /U Copy only those source files that are newer than a matching target file, or where a matching target file doesn't exist /V Verify disk writes HDisplay and (optionally) change the system date. Usage: DATE [mm-dd-yy] mm Month (1 - 12) dd Day (1 - 31) yy Year (80 - 199 or 1980 - 2099) If you don't enter a date, 4OS2 will display the current date and prompt for a new one. The format for the date entry depends on the country code. U.S. format is mm-dd-yy; European format is dd-mm-yy; Japanese is yy-mm-dd. HErase the specified file(s) from the disk. Usage: DEL [/A:[[-]rhsda] /F /N /P /Q /S /T /X /Y /Z] [d:][path]filename... /A: Select files by attributes /F (4OS2/32 only) Don't copy the file(s) to the DELDIR directory /N Don't actually delete the file(s) /P Confirm deletion for each file (Y or N) /Q Don't display filenames or totals /S Delete matching files in the subdirectories /T Display totals only /X Remove empty subdirectories after deleting (use with /S) /Y The reverse of /P - it assumes a Y response to everything /Z Delete all files, including read-only, hidden and system files HPause for a specified period of time. Usage: DELAY [n] n The number of seconds to pause. The default value is 1 second. HCreate, modify, or delete file and subdirectory descriptions. Usage: DESCRIBE [/A:[[-]rhsda]] [d:][path]filename... ["description"] /A: Select files by attributes You can enter a description on the command line by entering the filename followed by the description enclosed in quotes. If you don't enter a description, DESCRIBE will prompt you for one for each matching filename. HStart an OS/2 program in detached mode. Usage: DETACH [d:][filename[.ext]] HDisplay information about files and subdirectories. Usage: DIR [/1 /2 /4 /A[:-rhsda] /B /D /E /F /H /I"text" /J /K /L /M /N /O:-deginrsu /P /R /S /T /U /V /W /Z] [[d:][path]filename...] /1 One column /M Suppress footers /2 Two columns /N Display FAT volume in HPFS format /4 Four columns /O Sort order /A Select files by attributes /P Pause after each page /B Display filenames only /R Disable description wrapping /D Disable colorization /S Display subdirectories /E Upper case filenames /T Display attributes /F Display expanded filenames /T:acw Date / time type /H Hide "." and ".." /U Summaries only /I Match descriptions /V Sort filenames vertically /J Justify filenames /W Wide display /K Suppress headers /Z Display HPFS volume in FAT format /L Lower case filenames HDisplay the directory stack used by PUSHD and POPD. Usage: DIRS HCreate loops in batch files. Usage: DO [n | FOREVER] DO var = start TO end [BY n] DO [WHILE | UNTIL] condition ... [ITERATE] [LEAVE] ... ENDDO HTells applications where to search for their files. Usage: DPATH [[d:]path][[;[d:]path]...]] DPATH ; If you enter DPATH with no parameters, 4OS2 displays the current search path. If you enter DPATH and a semicolon, 4OS2 clears the search path. HDraw a box on the screen. Usage: DRAWBOX ulrow ulcol lrrow lrcol style [BRIght][BLInk] fg ON [BRI] bg [FILL [BRIght] bgfill] [ZOOm] [SHAdow] ulrow Row for upper left corner ulcol Column for upper left corner lrrow Row for lower right corner lrcol Column for lower right corner style Box drawing style (0 - 4) fg Foreground color bg Background color bgfill Background fill color (for the inside of the box) ZOOM Box zooms to its final size SHADOW Include a drop shadow Valid colors are Black, Blue, Green, Red, Magenta, Cyan, Yellow, and White. HDraw a horizontal line on the screen. Usage: DRAWHLINE row column length style [BRIght] [BLInk] fg ON [BRI] bg row Start row column Start column length Length of line style Line drawing style (1 or 2) fg Foreground color bg Background color Valid colors are Black, Blue, Green, Red, Magenta, Cyan, Yellow, and White. HDraw a vertical line on the screen. Usage: DRAWVLINE row column length style [BRIght] [BLInk] fg ON [BRI] bg row Start row column Start column length Length of line style Line drawing style (1 or 2) fg Foreground color bg Background color Valid colors are Black, Blue, Green, Red, Magenta, Cyan, Yellow, and White. HDisplay the echo status, enable or disable batch file or command line echoing, or display a message. Usage: ECHO [on | off | message] ECHO defaults to ON in batch files and OFF during keyboard input. If no arguments are entered, ECHO displays the current echo state. HDisplay a message, without printing a trailing CR/LF. Usage: ECHOS message HRestore the disk drive, directory, and environment saved by SETLOCAL. Usage: ENDLOCAL HErase the specified file(s) from the disk. Usage: ERASE [/A:[[-]rhsda] /F /N /P /Q /S /T /X /Y /Z] [d:][path]filename... /A: Select files by attributes /F (4OS2/32 only) Don't make copies of the file(s) in the DELDIR directory /N Don't actually delete the file(s) /P Confirm deletion for each file (Y or N) /Q Don't display filenames or totals /S Delete matching files in the subdirectories /T Only display totals (no filenames) /X Remove empty subdirectories after deleting (use with /S) /Y The reverse of /P - it assumes a Y response to everything /Z Delete all files, including read-only, hidden and system files HEdit environment variables and/or aliases. Usage: ESET [/A] varname... /A Assume the argument is an alias ESET will search for environment variables first, and then aliases. HPerform a command, except on the file(s) specified. Usage: EXCEPT ([d:][path]filename...) command HExit the current command processor. Usage: EXIT [value] If you specify a value, EXIT will return that value to the parent process. If you EXIT from a primary command processor, you will be returned to PM. HFind files or text. Usage: FFIND [/A[[:][-]rhsda] /B /C /D[list] /E /K /L /M /O[[:][-]acdeginrsu] /P /S /[T|X]"xx" /V file... /A Select files by attribute /B Bare output /C Case sensitive search /D Drive or drive list /E Upper case display /K No headers /L Line numbers /M No footers /O Sort order /P Pause after each page /S Subdirectories /T"xx" Text search string /V Verbose, show all matching lines /X["xx"] Hex display / search string HRepeat a command for several variables. Usage: FOR [/A:[-[rhsda]] /H %%var IN (set) [DO] command /A Retrieve files with the specified attribute(s) /H Hide "." and ".." If a filename in (set) begins with an @, "var" will be set sequentially to each line in the file. HDisplay the total disk space, total bytes used, and total bytes free on the specified (or default) drive(s). Usage: FREE [d:] ... HExecute a command in the current directory and its subdirectories. Usage: GLOBAL [/H /I /P /Q] command /H Process hidden subdirectories /I Ignore exit codes /P Prompt whether to execute the command in each directory /Q Quiet (don't display directory names) HCall a subroutine in a batch file. Usage: GOSUB label The label must begin with a colon (:), and appear by itself on the line. GOSUB ignores case differences when matching labels. HContinue batch file processing at the line following the label. Usage: GOTO [/I] label /I Continue current IFF and DO processing after the GOTO The label must begin with a colon (:), and appear by itself on the line. GOTO ignores case differences when matching labels. HDisplay the 4OS2 help file. Usage: HELP [command] HELP uses the PM VIEW.EXE program to display help for 4OS2 (4OS2.INF) and OS/2 in general (CMDREF.INF). HDisplay, read, or clear the history list. Usage: HISTORY [/A command] [/F /P] [/R [d:][path]filename] /A Add command to history list /F Clear history list /P Pause after displaying each page /R Read history list from specified file If no parameters are entered, HISTORY displays the current history list. HAllow conditional execution of commands. Usage: IF [NOT] condition [.AND. | .OR. | .XOR. [NOT] ...] command The condition can be a string comparison (==, EQ, !=, NE, LT, LE, GE, or GT), or one of the following: ERRORLEVEL [condition] number EXIST filename ISALIAS aliasname ISDIR [d:]path ISINTERNAL command ISLABEL labelname HAllow IF/THEN/ELSE conditional execution of commands. Usage: IFF [NOT] condition [.AND. | .OR. | .XOR. [NOT] ...] THEN ^ ... ^ ELSE[[IFF] ... THEN] ^ ... ^ ENDIFF The condition can be a string comparison (==, EQ, !=, NE, LT, LE, GE, or GT), or one of the following: ERRORLEVEL [condition] number EXIST filename ISALIAS aliasname ISDIR [d:]path ISINTERNAL command ISLABEL labelname HGet a single keystroke environment variable from standard input. Usage: INKEY [/C /D /K"..." /P /Wn /X] [text] %%varname /C Clear keyboard buffer /D Digits only /K Allowable keystrokes, enclosed in double quotes /P Don't display keystroke /W Wait "n" seconds for a response /X Do not add carriage return / line feed after user's entry You can optionally display prompt text before the variable name. HEnter an environment variable from the standard input. Usage: INPUT [/C /D /E /Ln /N /P /Wn /X] [text] %%varname /C Clear keyboard buffer /D Digits only /E Edit existing value /L Maximum of "n" characters /N Disable input colors /P Display * instead of characters /W Wait "n" seconds for a response /X Do not add carriage return / line feed after user's entry You can optionally display prompt text before the variable name. HSet the keyboard toggles (Caps Lock, Num Lock, and Scroll Lock). Usage: KEYBD [/Cn /Nn /Sn] /C Caps lock /N Num lock /S Scroll lock A 0 turns the toggle off, a 1 turns it on. HDisplay the history list, or enable/disable the command line editing keys. Usage: KEYS [ON | OFF | LIST] 4OS2 includes this command for compatibility with CMD.EXE; for 4OS2 you should normally use the HISTORY command instead. ON Enable command history; read input characters OFF Disable command history; read input lines LIST Display the command history HDisplay a file with forward and backward paging and scrolling. Usage: LIST [/A:[-[rhsda]] /H /S /W /X] [d:][path]filename... /A: Select files by attribute /H Strip high bit from each character /S Read from standard input /W Wrap text at right margin /X Display in hex mode HSwitch a batch file to or from .BTM mode. Usage: LOADBTM [on | off] LOADBTM switches a batch file (.CMD or .BTM) to and from .BTM mode. If no argument is given, it displays the current LOADBTM status. HEnable or disable command logging, change the log file name, or add a comment to the log file. Usage: LOG [/H /W [d:]pathname] [ON | OFF | "text"] /H Toggle history log /W Specify new log filename and turn command logging on Entering LOG with no parameters displays the log status and file name. Entering LOG with text writes the text to the log file, even if LOG is set OFF. HCreate subdirectories. Usage: MD [/S] [d:]pathname... /S Create intermediate subdirectories HDisplay the system RAM status. Usage: MEMORY MEMORY displays the free RAM, the size of the OS/2 swap file, the total and free environment space, the total and free alias list space, and the total command history space. In 4OS2/32 only, MEMORY also displays the size of physical and resident RAM. HCreate subdirectories. Usage: MKDIR [/S] [d:]pathname... /S Create intermediate subdirectories HMove files to other directories and drives. Usage: MOVE [d:][path]filename... [d:][path][filename] [/A:[-[rhsda]] /C /D /F /H /N /P /Q /R /S /T /U /V] /A: Select files by attribute /C Move only files where the source file is newer than the target /D Target is a directory /F (4OS2/32 only) Don't copy the file(s) to the DELDIR directory /H Move all files, including hidden & system /N Don't actually move the file(s) /P Prompt to confirm each move /Q Don't display filenames or totals /R Prompt before overwriting an existing file(s) /S Move entire subdirectory tree /T Display totals only /U Move only those files that either don't exist in the target directory, or where the source file is newer than the target /V Verify disk writes Execute a command when a specific condition occurs. Usage: ON BREAK command ON ERROR command ON BREAK and ON ERROR only affect the current batch file. Tells 4OS2 where to search for executable and batch files not in the current directory. Usage: PATH [[d:]path][[;[d:]path]...]] PATH ; If you enter PATH with no parameters, PATH displays the current search path. If you enter PATH and a semicolon, PATH clears the search path and will search only the current directory (this is the default at system startup). HSuspend alias or batch file execution while waiting for a keystroke. Usage: PAUSE [message] If you don't specify a message, PAUSE displays a default message . HChange to the disk drive and directory at the top of the directory stack (saved by PUSHD). Usage: POPD [*] The * option clears the directory stack, without changing the current drive and directory. HChange the command line prompt. Usage: PROMPT [text] If you enter PROMPT with no parameters, PROMPT sets the prompt on drives A and B to $n$g, and on all other drives to $p$g. The prompt characters are: $ The $ character n Current drive _ CR/LF P Current directory (upper case) b The | character p Current directory (lower case) c The open parenthesis ( q The = character D Date (Fri Dec 25, 1992) r The current errorlevel d Date (Fri 12-25-92) s The space character e The ASCII ESC character T Current time (12-hour) f The close parenthesis ) t Current time (24-hour) g The > character v OS/2 version number h Destructive backspace Xd: Current directory (upper case) for i OS/2 line 0 HELP prompt drive d:, incl. drive letter l The < character xd: Current directory (lower case) for M 12-hour time as hh:mm drive d:, incl. drive letter m 12-hour time as hh:mm z Shell level HSave the current disk and directory. Usage: PUSHD [[d:]pathname] PUSHD saves the current directory on the directory stack, and if a pathname is specified on the command line, changes the disk drive and directory. HTerminate the current batch file. Usage: QUIT [value] If you specify a value, QUIT will set ERRORLEVEL to that value. HRemove one or more directories. Usage: RD [d:]path... HReboot the system. Usage: REBOOT [/S /V] /S Shutdown the file system, but don't reboot /V Prompt for verification before rebooting HPut a comment in a batch file. Usage: REM [comment] Everything following a REM will be ignored, including quote characters, the redirection symbols (|><) and the command separator character. HRename files or subdirectories. Usage: REN [/A:[[-]rhsda] /N /P /Q /S /T] [d:][path]filename... [d:][path]filename /A: Select files by attribute /N Don't actually rename the file(s) /P Prompt for confirmation /Q Don't display filenames /S Rename subdirectory /T Display totals only HRename files or subdirectories. Usage: RENAME [/A:[[-]rhsda] /N /P /Q /S /T] [d:][path]filename... [d:][path]filename /A: Select files by attribute /N Don't actually rename the file(s) /P Prompt for confirmation /Q Quiet (don't display filenames) /S Rename subdirectory /T Display totals only HReturn from a GOSUB (subroutine) call in a batch file. Usage: RETURN The RETURN command returns from a GOSUB call to the command following the original GOSUB. HRemove one or more directories. Usage: RMDIR [d:]path... HPosition the cursor on the screen, and optionally display a message. Usage: SCREEN row column [message] HDisplay text in color. Usage: SCRPUT row column [BRIght] [BLInk] fg ON [BRIght] bg text row Start row column Start column fg Foreground character color bg Background character color text The text to display Valid colors are Black, Blue, Green, Red, Magenta, Cyan, Yellow, and White. HExecute a command on the specified files. Usage: SELECT [/A[:-rhsda] /D /E /H /I"text" /O:-deginrsu /Z] command ([path]filename) /A Select files by attributes /D Disable directory colorization /E Display filenames in upper case /H Hide "." and ".." /I Match file descriptions /O Sort sequence /Z Display HPFS volumes in FAT format HDisplay, create, modify, or delete environment variables. Usage: SET [/P] [/R [d:][path]filename...] [variable=[value]] /P Pause after displaying each page /R Read environment variables from a file Entering SET with no variable or value displays the entire environment. If you don't enter a value, SET displays the value of that variable. Otherwise, the variable and value are placed in the environment. If the variable already exists, its old contents are replaced by the new value. HDisplay or set 4OS2 configuration variables. Usage: SETDOS [/B? /C? /D? /E? /Fx.y /I+|-command /L? /M? /N? /P? /R? /S?:? /U? /V? /X? /Y?] /B Disable/enable bright backgrounds /C Command separator character /D Disable/enable descriptions /E Escape character /F Format for @EVAL /I Disable/enable internal commands /L Line or character input /M Line editing mode /N NoClobber setting for redirection /P Variable parameter character /R Number of screen rows /S Cursor shape /U Filename case /V Batch echo /X Alias/variable/redirection expansion /Y Disable/Enable batch file single-step HSave the current disk drive, directory, and environment. Usage: SETLOCAL HAllow the use of more than 10 variables in a batch file. Usage: SHIFT [n] SHIFT moves each batch file parameter "n" positions. The default value for "n" is 1. You can reverse a SHIFT by giving a negative value for "n". HStart a program in a new OS/2 session. Usage: START [title] [/BG /C /DOS[=file] /FG /FS /I /ICON=name /INV /K /L /MAX /MIN /N /PGM /PM /POS=x,y,x1,y1 /WAIT /WIN /WIN3[=file] /WIN3S[=file]] [command ...] title Title for title bar /MAX Start maximized /BG Start in background /MIN Start minimized /C Transient session /N Start without 4OS2 /DOS DOS session /PGM Next argument is program name /FG Start in foreground /PM PM application /FS Full-screen session /POS Start position (x,y) and window /I Inherit environment from size (x1, y1) in pels CONFIG.SYS /WAIT Wait for session to end /ICON Specify icon file /WIN Windowed OS/2 session /INV Invisible session /WIN3 Windows 3 session (enhanced) /K Keep session /WIN Windows 3 session (standard) /L Local alias/history lists HCopy standard input to standard output, and save a copy in the specified file(s). Usage: TEE [/A] [d:][path]filename... /A Append output to the file(s) HDisplay a block of text in a batch file. Usage: TEXT . . . ENDTEXT Both TEXT and ENDTEXT must be entered as the only command on that line. HDisplay and (optionally) set the current system time. Usage: TIME [hh:mm:ss[am|pm]] hh Hour (0 - 23) mm Minute (0 - 59) ss Second (0 - 59) If you don't enter any parameters, TIME will display the current system time and prompt for a new time. TIME defaults to 24-hour format; you can enter the time in 12-hour format by appending an "am" or "pm". HTurn the system stopwatch on and off. Usage: TIMER [/1 /2 /3 /S] [ON] ON Restart timer /1 Use timer #1 /2 Use timer #2 /3 Use timer #3 /S Display split time HDisplay the contents of the specified file(s). Usage: TYPE [/A:[[-]rhsda] /L /P] [d:][pathname]filename... /A: Select files by attribute /L Print line numbers preceding each line of text /P Pause after each page HRemove aliases from the alias list. Usage: UNALIAS [/Q] alias... UNALIAS * /Q Don't display an error message if the alias doesn't exist UNALIAS also accepts the wildcard character * to delete all aliases. HRemove variables from the environment. Usage: UNSET [/Q] name... UNSET * /Q Don't display an error message if the variable doesn't exist UNSET also accepts the wildcard character * to delete all variables. HDisplay the current 4OS2 and OS/2 versions. Usage: VER [/R] /R Display OS/2 and 4OS2 revision levels HDisplay, enable, or disable disk write verification. Usage: VERIFY [on | off] Entering VERIFY with no parameters will display the current VERIFY state. HDisplay the disk volume label(s). Usage: VOL [d:] ... If you don't enter a drive name, VOL displays the disk label and the volume serial number for the current drive. HDisplay text in color in a vertical column. Usage: VSCRPUT row column [BRIght] [BLInk] fg ON [BRIght] bg text row Start row column Start column fg Foreground character color bg Background character color text The text to display Valid colors are Black, Blue, Green, Red, Magenta, Cyan, Yellow, and White. HMinimize or maximize current 4OS2 window, restore default window size, or change the window title. Usage: WINDOW [MIN | MAX | RESTORE] [/POS=row,col,width,height] ["title"] "title" Change the window title. minimize Minimize the 4OS2 window. maximize Maximize the 4OS2 window. restore Restore the 4OS2 window to its "normal" size. HCopy standard input to standard output, and then copy the specified file(s) to standard output. Usage: Y [d:][path]filename...