| COMMAND |
WHAT IT DOES |
| BREAK |
Display ALT-C interrupt status (ON or OFF) |
| BREAK ON |
Allow ALT-C interrupt anytime |
| BREAK OFF |
Allow ALT-C interrupt during keyboard operation |
| CAUX device |
Select the named device driver for auxiliary input/output |
| CAUX AUX |
Reinstate standard device driver for auxiliary device |
| CHDIR [ d: ] |
Display name of the current directory on default drive or select drive. Can be abbreviated to CD |
| CHDIR [ \ ] dir name |
Change working directory to the last subdirectory named in the path |
| CD .. |
Change working directory to parent directory |
| CD / A |
Display names of working directories on all drives |
| CLST device |
Select the named device driver for the list device input/output |
| CLST SERIALA |
Select serial port A for output for list device (printer) |
| CLS |
Clear the CRT screen |
| COPY d:filespec |
Copy file from named device onto default drive |
| COPY filespec1 filespec2 |
Copy first file to second file |
| COPY filespec1 + filespec2 filespec3 |
Copy first and second files into third |
| COPY filespec1/b + filespec2/a filespec3/b |
Copy first binary and second ASCII files into third binary file |
| COPY filespec1/a filespec2 |
Copy first file up to the first embedded ^Z into second file |
| COPY *.ext filespec |
Copy first file group into second file |
| COPY *.ex1 + *.ex2 *.ex3 |
Copy matching files from first and second file groups into third file group |
| CTTY |
Change the console input/output device |
| DATE |
Display date |
| DATE mm/dd/yy |
Set new date. (Use dd-mm-yy in Europe) |
| DEL filespec |
Delete file |
| DEL *.ext |
Delete all files with named extension |
| DEL filename.* |
Delete all files with given filename, regardless of extension |
| DEL *.* |
Delete all files in the working directory of default drive |
| DIR |
Display the current directory, default drive |
| DIR d: |
Display the current directory, named drive |
| DIR d:[ \ ]directoryname... |
Display the last named subdirectory in the path on the named drive |
| DIR filespec |
Display directory entry for named file |
| DIR /P |
Stop directory display when screen is full |
| DIR /W |
Display filenames across screen width |
| ECHO |
Display setting (ON or OFF) for display of batch file commands and comments |
| ECHO ON |
Display all batch file commands and comments |
| ECHO OFF |
Stop display of batch file commands and comments |
| ERASE filespec |
Erase (delete) the named file. Same as DEL command |
| EXIT |
Return from an invoked COMMAND.COM to previous program |
| FOR %%variable in (set) do MS-DOS command %%variable |
For each member in "(set)" do the MS-DOS command |
| GOTO label |
Continue batch processing with the next command below the specified label |
| HISTORY |
Display command history. (Can also be HI) |
| HI n |
Re-enter command n from history into command-line template |
IF string1 = = string2 MS-DOS command |
If the condition is TRUE (equal), process the MS-DOS command. Batch file command only |
| IF [ not ] exist filespec MS-DOS command |
Look for specified file. Process MS-DOS command if file exists, or when, "if not" is TRUE. Batch file command only |
| IF errorlevel n MS-DOS command |
Check for specified errorlevel number (n). Process MS-DOS command if previous program exit code n is the same or higher than n. Batch file command only |
| IF not errorlevel n MS-DOS command |
When previous exit code is less than n, process MS-DOS command. Batch file command only |
| MKDIR [d:][ \] directoryname... |
Make new sub-directory in the current directory or in the last directory in the specified path. (Can also be MD) |
| PATH |
Display the current path (Location of command and batch files) |
| PATH; |
Search only the current directory for command and batch files |
PATH [d:][ \] directoryname... [;[d:][\] directoryname...] |
Search for command or batch files in the specified sub-directory or sub-directories |
| PAUSE |
Pause or stop batch file processing |
| PAUSE comment |
Display comment during pause in batch file processing |
| PROMPT |
Use the MS-DOS default prompt |
| PROMPT prompt text |
Change default MS-DOS prompt to specified alphanumeric characters (prompt text) |
| REM comment |
Display the specified characters (comment) during batch file processing |
| RMDIR [d:][\] directoryname... |
Remove the specified directory name from the current directory or from the last directory in the path. (Can also be RD) |
| REN filespec filespec |
Rename the first file with the second file name |
| SHIFT |
Move all replaceable parameters one position to the left. (%0 < %1 < %2....%9 < next parameter) |
| SYS source destination |
Copy operating system and support files from source drive to designated drive. Source must be an existing system or system configuration file.Use /O to copy only MS-DOS.SYS |
| TIME |
Display time |
| TIME hh:mm |
Set time (hours and minutes) |
| TYPE filespec |
Display the named file |
| VER |
Display current version of MS-DOS |
| VERIFY |
Display current setting (ON or OFF) of verify |
| VERIFY ON |
Verify any data written to disk |
| VERIFY OFF |
Do not verify data written to disk |
| VOL |
Display mane of volume in default drive |
| VOL d: /C |
Display name of volume in named drive and prompt for a new Volume ID |