Difference between revisions of "MS-DOS 6.22 Command Reference"

From Free Knowledge Base- The DUCK Project: information for everyone
Jump to: navigation, search
m
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
append - Causes MS-DOS to look in other directories when editing a file or running a command.<BR>
+
== SUMMARY ==
arp - Displays, adds, and removes arp information from network devices.<BR>
+
 
assign - Assign a drive letter to an alternate letter.<BR>
+
<nowiki>APPEND  Allows programs to open data files in specified directories as if they were in the current directory.</nowiki>
assoc - View the file associations.<BR>
+
<nowiki>ATTRIB  Displays or changes file attributes.</nowiki>
at - Schedule a time to execute commands or programs.<BR>
+
<nowiki>BREAK    Sets or clears extended CTRL+C checking.</nowiki>
atmadm - Lists connections and addresses seen by Windows ATM call manager.<BR>
+
<nowiki>CD      Displays the name of or changes the current directory.</nowiki>
attrib - Display and change file attributes.<BR>
+
<nowiki>CHCP    Displays or sets the active code page number. </nowiki>
batch<BR> console command that executes a series of commands in a file.<BR>
+
<nowiki>CHDIR    Displays the name of or changes the current directory.</nowiki>
bootcfg<BR> console command that allows a user to view, modify, and rebuild the boot.ini<BR>
+
<nowiki>CHKDSK  Checks a disk and displays a status report.</nowiki>
break - Enable / disable CTRL + C feature.<BR>
+
<nowiki>CHOICE  Prompts the user to make a choice in a batch program.</nowiki>
cacls - View and modify file ACL's.<BR>
+
<nowiki>CLS      Clears the screen.</nowiki>
call - Calls a batch file from another batch file.<BR>
+
  <nowiki>COMMAND  Starts a new instance of the MS-DOS command interpreter.</nowiki>
cd - Changes directories.<BR>
+
<nowiki>COMP    Compares the contents of two files or sets of files. </nowiki>
chcp - Supplement the International keyboard and character set information.<BR>
+
<nowiki>COPY    Copies one or more files to another location.</nowiki>
chdir - Changes directories.<BR>
+
<nowiki>CTTY    Changes the terminal device used to control your system. </nowiki>
chdsk - Check the hard disk drive running FAT for errors.<BR>
+
<nowiki>DATE    Displays or sets the date.</nowiki>
chkntfs - Check the hard disk drive running NTFS for errors.<BR>
+
  <nowiki>DBLSPACE Creates and manages drives compressed by using DoubleSpace. </nowiki>
choice - Specify a listing of multiple options within a batch file.<BR>
+
<nowiki>DEBUG    Starts Debug, a program testing and editing tool.</nowiki>
cls - Clears the screen.<BR>
+
  <nowiki>DEFRAG  Reorganizes the files on a disk to optimize the disk. </nowiki>
cmd - Opens the command interpreter. -  
+
<nowiki>DEL      Deletes one or more files.</nowiki>
color - Easily change the foreground and background color of the MS-DOS window.<BR>
+
<nowiki>DELOLDOS Deletes the OLD_DOS.1 directory and the files it contains. </nowiki>
command - Opens the command interpreter. - 
+
<nowiki>DELTREE  Deletes a directory and all the files and subdirectories in it.</nowiki>
comp - Compares files.<BR>
+
<nowiki>DIR      Displays a list of files and subdirectories in a directory.</nowiki>
compact - Compresses and uncompress files.<BR>
+
<nowiki>DISKCOMP Compares the contents of two floppy disks. </nowiki>
control - Open Control Panel icons from the MS-DOS prompt.<BR>
+
<nowiki>DISKCOPY Copies the contents of one floppy disk to another.</nowiki>
convert - Convert FAT to NTFS.<BR>
+
<nowiki>DOSKEY  Edits command lines, recalls MS-DOS commands, and creates macros.</nowiki>
copy - Copy one or more files to an alternate location.<BR>
+
<nowiki>DOSSHELL Starts MS-DOS Shell.</nowiki>
ctty - Change the computers input/output devices.<BR>
+
<nowiki>DRVSPACE Creates and manages drives compressed by using DriveSpace. </nowiki>
date - View or change the systems date.<BR>
+
<nowiki>ECHO    Displays messages, or turns command echoing on or off.</nowiki>
debug - Debug utility to create assembly programs to modify hardware settings.<BR>
+
<nowiki>EDIT    Starts MS-DOS Editor, which creates and changes ASCII files.</nowiki>
defrag - Re-arrange the hard disk drive to help with loading programs.<BR>
+
<nowiki>EMM386  Enables or disables EMM386 expanded memory support. </nowiki>
del - Deletes one or more files.<BR>
+
<nowiki>ERASE    Deletes one or more files. (obsolete command, see DEL) </nowiki>
delete - console command that deletes a file.<BR>
+
<nowiki>EXIT    Quits the COMMAND.COM program (command interpreter).</nowiki>
deltree - Deletes one or more files and/or directories.<BR>
+
<nowiki>EXPAND  Decompresses one or more compressed files. </nowiki>
dir - List the contents of one or more directory.<BR>
+
<nowiki>FASTHELP Provides summary Help information for MS-DOS commands. </nowiki>
disable<BR> console command that disables Windows system services or drivers.<BR>
+
<nowiki>FASTOPEN Decreases the amount of time needed to open frequently used files and directories. </nowiki>
diskcomp - Compare a disk with another disk.<BR>
+
<nowiki>FC      Compares two files or sets of files, and displays the differences between them. </nowiki>
diskcopy - Copy the contents of one disk and place them on another disk.<BR>
+
<nowiki>FDISK    Configures a hard disk for use with MS-DOS. </nowiki>
doskey - Command to view and execute commands that have been run in the past.<BR>
+
<nowiki>FIND    Searches for a text string in a file or files.</nowiki>
dosshell - A GUI to help with early MS-DOS users.<BR>
+
<nowiki>FOR      Runs a specified command for each file in a set of files.</nowiki>
drivparm - Enables overwrite of original device drivers.<BR>
+
<nowiki>FORMAT  Formats a disk for use with MS-DOS.</nowiki>
echo - Displays messages and enables and disables echo.<BR>
+
<nowiki>GRAPHICS Loads a program that can print graphics. </nowiki>
edit - View and edit files.<BR>
+
<nowiki>HELP    Provides complete, interactive Help information for MS-DOS commands. </nowiki>
edlin - View and edit files.<BR>
+
<nowiki>INTERLNK Connects two computers via parallel or serial ports. </nowiki>
emm386 - Load extended Memory Manager.<BR>
+
<nowiki>INTERSVR Starts the Interlnk server. </nowiki>
ename - console command to enable a disable service or driver.<BR>
+
<nowiki>KEYB    Configures a keyboard for a specific language. </nowiki>
endlocal - Stops the localization of the environment changes enabled by the setlocal command.<BR>
+
<nowiki>LABEL    Creates, changes, or deletes the volume label of a disk.</nowiki>
erase - Erase files from computer.<BR>
+
<nowiki>LH      Loads a program into the upper memory area. </nowiki>
exit - Exit from the command interpreter.<BR>
+
<nowiki>LOADFIX  Loads a program above the first 64K of memory, and runs the program. </nowiki>
expand - Expand a Microsoft Windows file back to it's original format.<BR>
+
<nowiki>LOADHIGH Loads a program into the upper memory area. </nowiki>
extract - Extract files from the Microsoft Windows cabinets.<BR>
+
<nowiki>MD      Creates a directory.</nowiki>
fasthelp - Displays a listing of MS-DOS commands and information about them.<BR>
+
<nowiki>MEM      Displays the amount of used and free memory in your system.</nowiki>
fc - Compare files.<BR>
+
<nowiki>MEMMAKER Starts the Memmaker program, which optimizes your computer's memory. </nowiki>
fdisk - Utility used to create partitions on the hard disk drive.<BR>
+
<nowiki>MKDIR    Creates a directory. (obsolete command, see MD)</nowiki>
find - Search for text within a file.<BR>
+
<nowiki>MODE    Configures a system device.</nowiki>
findstr - Searches for a string of text within a file.<BR>
+
<nowiki>MORE    Displays output one screen at a time.</nowiki>
fixboot - Writes a new boot sector.<BR>
+
<nowiki>MOVE    Moves one or more files. Also renames files and directories.</nowiki>
fixmbr - Writes a new boot record to a disk drive.<BR>
+
<nowiki>MSAV    Scans your computer for known viruses. </nowiki>
for - Boolean used in batch files.<BR>
+
<nowiki>MSBACKUP Backs up or restores one or more files from one disk to another. </nowiki>
format - Command to erase and prepare a disk drive.<BR>
+
<nowiki>MSD      Provides detailed technical information about your computer. </nowiki>
ftp - Command to connect and operate on a FTP server.<BR>
+
<nowiki>NLSFUNC  Loads country-specific information.</nowiki>
ftype - Displays or modifies file types used in file extension associations.<BR>
+
<nowiki>PATH    Displays or sets a search path for executable files.</nowiki>
goto - Moves a batch file to a specific label or location.<BR>
+
<nowiki>PAUSE    Suspends processing of a batch file and displays a message.</nowiki>
graftabl - Show extended characters in graphics mode.<BR>
+
<nowiki>POWER    Turns power management on and off.</nowiki>
help - Display a listing of commands and brief explanation.<BR>
+
<nowiki>PRINT    Prints a text file while you are using other MS-DOS commands.</nowiki>
if - Allows for batch files to perform conditional processing.<BR>
+
<nowiki>PROMPT  Changes the MS-DOS command prompt.</nowiki>
ipconfig - Network command to view network adapter settings and assigned values.<BR>
+
<nowiki>QBASIC  Starts the MS-DOS QBasic programming environment. </nowiki>
keyb - Change layout of keyboard.<BR>
+
<nowiki>RD      Removes a directory.</nowiki>
label - Change the label of a disk drive.<BR>
+
<nowiki>REN      Renames a file or files.</nowiki>
lh - Load a device driver in to high memory.<BR>
+
<nowiki>RENAME  Renames a file or files. (obsolete command, see REN)</nowiki>
listsvc - console command that displays the services and drivers.<BR>
+
<nowiki>REPLACE  Replaces files. </nowiki>
loadfix - Load a program above the first 64k.<BR>
+
<nowiki>RESTORE  Restores files that were backed up by using the BACKUP command. </nowiki>
loadhigh - Load a device driver in to high memory.<BR>
+
<nowiki>RMDIR    Removes a directory. (obsolete command, see RD)</nowiki>
lock - Lock the hard disk drive.<BR>
+
<nowiki>SCANDISK Checks a drive for errors and repairs any problems it finds.</nowiki>
logoff - Logoff the currently profile using the computer.<BR>
+
<nowiki>SET      Displays, sets, or removes MS-DOS environment variables.</nowiki>
logon - console command to list installations and enable administrator login.<BR>
+
<nowiki>SETVER  Sets the version number that MS-DOS reports to a program.</nowiki>
map - Displays the device name of a drive.<BR>
+
<nowiki>SHARE    Installs file-sharing and locking capabilities on your hard disk.</nowiki>
md - Command to create a new directory.<BR>
+
<nowiki>SORT    Sorts input.</nowiki>
mem - Display memory on system.<BR>
+
<nowiki>SUBST    Associates a path with a drive letter.</nowiki>
mkdir - Command to create a new directory.<BR>
+
<nowiki>SYS      Copies MS-DOS system files and command interpreter to a disk you specify.</nowiki>
mode - Modify the port or display settings.<BR>
+
<nowiki>TIME    Displays or sets the system time.</nowiki>
more - Display one page at a time.<BR>
+
<nowiki>TREE    Graphically displays the directory structure of a drive or path. </nowiki>
move - Move one or more files from one directory to another directory.<BR>
+
<nowiki>TYPE    Displays the contents of a text file.</nowiki>
msav - Early Microsoft Virus scanner.<BR>
+
<nowiki>UNDELETE Restores files previously deleted with the DEL command. </nowiki>
msd - Diagnostics utility.<BR>
+
<nowiki>UNFORMAT Restores a disk erased by the FORMAT command. </nowiki>
msdex - Utility used to load and provide access to the CD-ROM.<BR>
+
<nowiki>VER      Displays the MS-DOS version.</nowiki>
nbtstat - Displays protocol statistics and current TCP/IP connections using NBT<BR>
+
<nowiki>VERIFY  Directs MS-DOS to verify that your files are written correctly to a disk. </nowiki>
net - Update, fix, or view the network or network settings<BR>
+
<nowiki>VOL      Displays a disk volume label and serial number.</nowiki>
netsh - Configure dynamic and static network information from MS-DOS.<BR>
+
<nowiki>VSAFE    Continuously monitors your computer for viruses. </nowiki>
netstat - Display the TCP/IP network protocol statistics and information.<BR>
+
<nowiki>XCOPY    Copies files (except hidden and system files) and directory trees.</nowiki>
nlsfunc - Load country specific information.<BR>
+
 
nslookup - Look up an IP address of a domain or host on a network.<BR>
+
== SPECIFIC COMMANDS ==
path - View and modify the computers path location.<BR>
+
=== COPY ===
pathping - View and locate locations of network latency.<BR>
+
 
pause - Command used in batch files to stop the processing of a command.<BR>
+
Syntax:
ping - Test / send information to another network computer or network device.<BR>
+
 
popd - Changes to the directory or network path stored by the pushd command.<BR>
+
COPY [/Y|-Y] [/A][/B] [d:][path]filename [/A][/B] [d:][path][filename] [/V]
power - Conserve power with computer portables. <BR>
+
or
print - Prints data to a printer port.<BR>
+
COPY [/Y|-Y] [/A][/B] [d:][path]filename+[d:][path]filename[...] [d:][path][filename] [/V]
prompt - View and change the MS-DOS prompt.<BR>
+
 
pushd - Stores a directory or network path in memory so it can be returned to at any time.<BR>
+
Purpose: Copies or appends files. Files can be copied with the same name or with a new name.
qbasic - Open the QBasic.<BR>
+
 
rd - Removes an empty directory.<BR>
+
/Y - Causes COPY to replace existing files without providing a confirmation prompt. By default, if you specify an existing file as the destination file, COPY will provide a confirmation prompt. (In previous versions of DOS, existing files were simply overwritten.)
ren - Renames a file or directory.<BR>
+
 
rename - Renames a file or directory.<BR>
+
/-Y - Displays a confirmation prompt before copying over existing files.
rmdir - Removes an empty directory.<BR>
+
 
route - View and configure windows network route tables.<BR>
+
/A - Used to copy ASCII files. Applies to the filename preceding it and to all following filenames. Files will be copied until an end-of-file mark is encountered in the file being copied. If an end-of-file mark is encountered in the file, the rest of the file is not copied. DOS will append an end-of-file mark at the end of the copied file.
runas - Enables a user to run a program as a different user.<BR>
+
 
scandisk - Run the scandisk utility.<BR>
+
/B - Used to copy binary files. Applies to the filename preceding it and to all following filenames. Copied files will be read by size (according to the number of bytes indicated in the file`s directory listing). An end-of-file mark is not placed at the end of the copied file.
scanreg - Scan registry and recover registry from errors.<BR>
+
 
set - Change one variable or string to another. <BR>
+
/V - Checks after the copy to assure that a file was copied correctly. If the copy cannot be verified, the program will display an error message. Using this option will result in a slower copying process.
setlocal - Enables local environments to be changed without affecting anything else. <BR>
+
 
setver - Change MS-DOS version to trick older MS-DOS programs.<BR>
+
share - Installs support for file sharing and locking capabilities. <BR>
+
shift - Changes the position of replaceable parameters in a batch program. <BR>
+
shutdown - Shutdown the computer from the MS-DOS prompt.<BR>
+
smartdrv - Create a disk cache in conventional memory or extended memory.<BR>
+
sort - Sorts the input and displays the output to the screen.<BR>
+
start - Start a separate window in Windows from the MS-DOS prompt.<BR>
+
subst - Substitute a folder on your computer for another drive letter. <BR>
+
switches - Remove add functions from MS-DOS.<BR>
+
sys - Transfer system files to disk drive.<BR>
+
telnet - Telnet to another computer / device from the prompt.<BR>
+
time - View or modify the system time.<BR>
+
title - Change the title of their MS-DOS window.<BR>
+
tracert - Visually view a network packets route across a network.<BR>
+
tree - View a visual tree of the hard disk drive.<BR>
+
type - Display the contents of a file.<BR>
+
undelete - Undelete a file that has been deleted.<BR>
+
unformat - Unformat a hard disk drive.<BR>
+
unlock - Unlock a disk drive.<BR>
+
ver - Display the version information.<BR>
+
verify - Enables or disables the feature to determine if files have been written properly. <BR>
+
vol - Displays the volume information about the designated drive. <BR>
+
xcopy - Copy multiple files, directories, and/or drives from one location to another.<BR>
+
  
 
&nbsp;
 
&nbsp;
  
 
&nbsp;
 
&nbsp;
 +
 +
==
  
  

Latest revision as of 23:58, 24 December 2018

SUMMARY

APPEND   Allows programs to open data files in specified directories as if they were in the current directory.
ATTRIB   Displays or changes file attributes.
BREAK    Sets or clears extended CTRL+C checking.
CD       Displays the name of or changes the current directory.
CHCP     Displays or sets the active code page number. 
CHDIR    Displays the name of or changes the current directory.
CHKDSK   Checks a disk and displays a status report.
CHOICE   Prompts the user to make a choice in a batch program.
CLS      Clears the screen.
COMMAND  Starts a new instance of the MS-DOS command interpreter.
COMP     Compares the contents of two files or sets of files. 
COPY     Copies one or more files to another location.
CTTY     Changes the terminal device used to control your system. 
DATE     Displays or sets the date.
DBLSPACE Creates and manages drives compressed by using DoubleSpace. 
DEBUG    Starts Debug, a program testing and editing tool.
DEFRAG   Reorganizes the files on a disk to optimize the disk. 
DEL      Deletes one or more files.
DELOLDOS Deletes the OLD_DOS.1 directory and the files it contains. 
DELTREE  Deletes a directory and all the files and subdirectories in it.
DIR      Displays a list of files and subdirectories in a directory.
DISKCOMP Compares the contents of two floppy disks. 
DISKCOPY Copies the contents of one floppy disk to another.
DOSKEY   Edits command lines, recalls MS-DOS commands, and creates macros.
DOSSHELL Starts MS-DOS Shell.
DRVSPACE Creates and manages drives compressed by using DriveSpace. 
ECHO     Displays messages, or turns command echoing on or off.
EDIT     Starts MS-DOS Editor, which creates and changes ASCII files.
EMM386   Enables or disables EMM386 expanded memory support. 
ERASE    Deletes one or more files. (obsolete command, see DEL) 
EXIT     Quits the COMMAND.COM program (command interpreter).
EXPAND   Decompresses one or more compressed files. 
FASTHELP Provides summary Help information for MS-DOS commands. 
FASTOPEN Decreases the amount of time needed to open frequently used files and directories. 
FC       Compares two files or sets of files, and displays the differences between them. 
FDISK    Configures a hard disk for use with MS-DOS. 
FIND     Searches for a text string in a file or files.
FOR      Runs a specified command for each file in a set of files.
FORMAT   Formats a disk for use with MS-DOS.
GRAPHICS Loads a program that can print graphics. 
HELP     Provides complete, interactive Help information for MS-DOS commands. 
INTERLNK Connects two computers via parallel or serial ports. 
INTERSVR Starts the Interlnk server. 
KEYB     Configures a keyboard for a specific language. 
LABEL    Creates, changes, or deletes the volume label of a disk.
LH       Loads a program into the upper memory area. 
LOADFIX  Loads a program above the first 64K of memory, and runs the program. 
LOADHIGH Loads a program into the upper memory area. 
MD       Creates a directory.
MEM      Displays the amount of used and free memory in your system.
MEMMAKER Starts the Memmaker program, which optimizes your computer's memory. 
MKDIR    Creates a directory. (obsolete command, see MD)
MODE     Configures a system device.
MORE     Displays output one screen at a time.
MOVE     Moves one or more files. Also renames files and directories.
MSAV     Scans your computer for known viruses. 
MSBACKUP Backs up or restores one or more files from one disk to another. 
MSD      Provides detailed technical information about your computer. 
NLSFUNC  Loads country-specific information.
PATH     Displays or sets a search path for executable files.
PAUSE    Suspends processing of a batch file and displays a message.
POWER    Turns power management on and off.
PRINT    Prints a text file while you are using other MS-DOS commands.
PROMPT   Changes the MS-DOS command prompt.
QBASIC   Starts the MS-DOS QBasic programming environment. 
RD       Removes a directory.
REN      Renames a file or files.
RENAME   Renames a file or files. (obsolete command, see REN)
REPLACE  Replaces files. 
RESTORE  Restores files that were backed up by using the BACKUP command. 
RMDIR    Removes a directory. (obsolete command, see RD)
SCANDISK Checks a drive for errors and repairs any problems it finds.
SET      Displays, sets, or removes MS-DOS environment variables.
SETVER   Sets the version number that MS-DOS reports to a program.
SHARE    Installs file-sharing and locking capabilities on your hard disk.
SORT     Sorts input.
SUBST    Associates a path with a drive letter.
SYS      Copies MS-DOS system files and command interpreter to a disk you specify.
TIME     Displays or sets the system time.
TREE     Graphically displays the directory structure of a drive or path. 
TYPE     Displays the contents of a text file.
UNDELETE Restores files previously deleted with the DEL command. 
UNFORMAT Restores a disk erased by the FORMAT command. 
VER      Displays the MS-DOS version.
VERIFY   Directs MS-DOS to verify that your files are written correctly to a disk. 
VOL      Displays a disk volume label and serial number.
VSAFE    Continuously monitors your computer for viruses. 
XCOPY    Copies files (except hidden and system files) and directory trees.

SPECIFIC COMMANDS

COPY

Syntax:

COPY [/Y|-Y] [/A][/B] [d:][path]filename [/A][/B] [d:][path][filename] [/V] or COPY [/Y|-Y] [/A][/B] [d:][path]filename+[d:][path]filename[...] [d:][path][filename] [/V]

Purpose: Copies or appends files. Files can be copied with the same name or with a new name.

/Y - Causes COPY to replace existing files without providing a confirmation prompt. By default, if you specify an existing file as the destination file, COPY will provide a confirmation prompt. (In previous versions of DOS, existing files were simply overwritten.)

/-Y - Displays a confirmation prompt before copying over existing files.

/A - Used to copy ASCII files. Applies to the filename preceding it and to all following filenames. Files will be copied until an end-of-file mark is encountered in the file being copied. If an end-of-file mark is encountered in the file, the rest of the file is not copied. DOS will append an end-of-file mark at the end of the copied file.

/B - Used to copy binary files. Applies to the filename preceding it and to all following filenames. Copied files will be read by size (according to the number of bytes indicated in the file`s directory listing). An end-of-file mark is not placed at the end of the copied file.

/V - Checks after the copy to assure that a file was copied correctly. If the copy cannot be verified, the program will display an error message. Using this option will result in a slower copying process.


 

 

==