The World of DOSIntroduction(1)History(1) DOS/Win3.11/95/98 vs. NT/ME/XP/2000(1) Command Index(1) Navigating DOS(2) Tips and Tricks(2) Network/Harware Utilities(3) How to make and use bootable floppy disks(3) Batch Files(4) Creating Batch Files(4) Batch file utilities and commands(4) The AUTOEXEC.BAT file(4) Types of Batch and System Files (4) Parameters in batch files(4) Batch File Library (5) Subject Index(5) Helpful DOS Links(5) IntroductionDOS stands for Disk Operating System. There are many versions of DOS available, but Windows 95/98/NT machines use MS-DOS*. DOS is a command line environment that sits beneath Windows systems. Before Windows, there was only DOS. With DOS a user can do most of the functions that one would do with Windows; make directories, edit files, run programs, compile code, print, get on-line. In fact, most of the operations of Windows are just graphical representations of the functions that DOS does. Some earlier versions use different commands, some new versions have depricated the old commands. The commands described here are fairly common to all and are still current in recent versions of MS-DOS. Refer to your DOS documentation for specifics.HistoryThe History of DOSHistory Of DOS DOS (Disk Operating System) THE HISTORY OF DOS "Chicago" If you open enough system files in Windows, you will see the reoccurring use of the word "chicago" with seemingly no purpose. When Windows95 was in early development its secret name was "Chicago." Either people were to lazy to take the reference out or they left in out of a sense of nostalgia. Chicago shows up in just about every Windows .inf, .ini, .sys and .dll file. Just search your drive for files containing the word "chicago" and you'll get well over 100. DOS/Win3.11/95/98 vs. NT/ME/XP/2000There are fundamental differences between the original Windows set up and the "NT" set up. There are, of course, differences between all versions of Windows systems, but the introduction of NT took the OS in a different direction. In general I will refer to ME, XP, and 2x as "NT" since they have a similar structure. The following list of commands represents all DOS commands, not all of them will work on your system. Whenever possible, the difference has been indicated here.Command Index---A---ACCOUNTS See NET. ANSI.SYS Defines functions that change display graphics, cursor control, and reassign keys. Called by CONFIG.SYS. More. APPEND Somewhat archaic. Allows files to be opened by programs from other directories as if they were in the same directory ARP Address Resolution Protocol, binds a network-layer IP address to an Ethernet address. Type ARP/? for list of commands. ASSIGN Reassign one disk to another. ASSIGN A:=C: To view the current assignments: ASSIGN /STATUS ASSOC Displays and modifies file extension associations. Simply typing ASSOC will give you an alphabetical list of all the file extensions and the file types/applications they are associated with. To change one enter ASSOC .file-ext=file-type AT Schedules commands and programs to run on a computer. Simply typing AT will show a list of current scheduled processes. Chances are there wont be any. Enter: AT current time + 2 minutes NET SEND your machine name Hello This will send you a network message in five minutes. If it is 3PM and your machine name "MyPC" the exact command would be AT 15:05 NET SEND Hello. Now, if you type AT you will see a list of scheduled commands. To remove one use the ID number: AT 1 /delete. You can also use this to run batch files or programs at given times and dates. ATTRIB Displays file ATTRIButes. Typing ATTRIB on
command line will reveal the attributes of all the files in the
current directory even if they are hidden. ATTRIB
will show information that
DIR will not.
Typing ATTRIB and a filename will reveal the attributes
of that file. Example: ATTRIB C:\AUTOEXEC.BAT ---B---BACKUP Backs up files to a designated location. This has been replaced by backup programs. It was possible to use parameters like: BACKUP C:\ D: /S /D:12/31/1980, this command would backup all the files on C: to D: that were created on Dec 31, 1980 or after. BREAK Used in CONFIG.SYS. Sets CTRL+C checking. BREAK ON and OFF to turn it on or off. Just typing BREAK will reveal the current setting. More. Sets or clears extended CTRL+C checking. BUFFERS Allocates memory for a specified number of disk buffers. Called from CONFIG.SYS ---C---CACLS Displays and modifies Access Control Lists. WINNT CALL Calls a batch file or program from within a batch file. the calling batch file does not continue until contol is returned by the program/file being called. More. Calls one batch program from another. CD and CHDIR "Change Directory" - navigates through windows directories(folders). More Displays the name of or changes the current directory. More.CERTUTIL Certificate utility for digital certificates. See MAKECERT CHCP Extends the windows character set by setting the Active Code Page which is usually determined by the COUNTRY command in config.sys. Can also be done with GRAFTABL. CHCP in NT: Displays or sets the
active code page
number. Accepts a three digit code for a regional character set: CHDIR Displays the name of or changes the current directory. Same as CD. CHKDSK "Check Disk" Scans hardrives(or other disks) for errors, bad files, damage, etc. May not work in some versions of Windows, use SCANDISK. There are lots of options with this utility so check the switch parameters. Checks a disk and displays a status report. More. CHKNTFS Checks a disk at boot and modifies the disk parameters CHOICE Sets up a selection menu and structure in batch files. Has been removed from most new versions More. CLEANUP Disk cleanup utility. CLS Clears previous entries in the DOS window. More. CLUSTER
Network management tool. CLUSTER /LIST[:domain-name]More. CMD Opens a command line or process in WINNT systems. Go to Start, Run and type CMD. Replaces COMMAND. Typing it on an already open DOS prompt shows the version information. More. COLOR Changes the background and text colors in a DOS
window. Use COLOR followed by a two digit hex code.
The first is the background, the second is the text.
COMP Compares the contents of two files or sets of files. Also see FC. More. COMPACT Displays or alters the compression of files on NTFS partitions. More. COMPUTER See NET. COMMAND Opens a command line or process in Windows systems. Go to Start, Run and type COMMAND. Replaced by CMD. Typing it on an already open DOS prompt shows the version information. More. Bug: In some versions of NT COMMAND will produce an error and so the same thing as CMD. CONFIG See NET. CONFIG SERVER See NET. CONFIG WORKSTATION See NET. CONFIG.SYS Sets environment variables. config.sys CONVERT Converts FAT volumes to NTFS. You cannot convert the current drive. More. COPY
Copies files.
COUNTRY Sets the language/character set used on the computer. Often not used in later Windows versions. config.sys CTTY
Somewhat archaic, not available in Win2K and above. Stands for
"Change Teletype." The command was/is used to change the I/O location,
usually from the monitor to
somewhere else. ---D---DATE Show the system date and alows you to change it. Type with no parameters to change the date, enter DATE/t to show the time without propmting the change. You may also enter DATE followed by a new date, but it must be formatted properly. Example: DATE 12/25/2004. The highest date that can be entered is 12/06/8907, the earliest 01/01/1980. No clue what the significance is. DBLSPACE.EXE More. DCOMCNFG Distributed COM Configuration. More. DEBUG
A command-line testing and editing interface for
writing
assembly code.
Type DEBUG and then ? at the new prompt to get
a list of commands. DEFRAG
DEFRAGment the hard drive. DEL
DELOLDOS Deletes old versions of DOS during an upgrade DELTREE Deletes a directory, its subdirectories and files. Does not work in NT. DEVICE Loads a device driver in DOS. config.sys DEVICEHIGH Loads a device driver in DOS upper memory. config.sys DIR "Directory" - Displays information about windows directories(folders).
More.
Displays a list of files and subdirectories in a directory. DISKCOMP Compares the contents of two floppy disks. More. DISKCOPY
Copy the entire contents of a disk to another.
Example: DISKCOPY A: B: DISPLAY.SYS Enables the display of international character sets. Not present in many later versions of DOS. More. DOS Loads DOS in the high memory area. config.sys DOSKEY Type in DOSKEY at the prompt, the DOSKEY program is now loaded. DOSKEY keeps a history of all the commands you type in each session so you can reuse them without typing them in over and over again. You may view your history by hitting the Up-arrow on your keypad. DOSKEY is active in NT by default, but not in WIN2K. More. Edits command lines, recalls Windows NT commands, and creates macros. DOSHELP See HELP. DOSSHELL More. DOSX A 386 DOS extender. DRIVER.SYS Used for adding new divices to a PC that originally did not support them. DRIVPARM Supresses default device drives when config.sys is loaded ---E---ECHO Echos commands. More. Displays messages, or turns command echoing on or off. EDIT
At the command prompt type EDLIN
A command line editor that came before
EDIT and disapeared for a while
but is has been resurected in recent versions
of NT.
WINNT. ENDLOCAL Ends localization of environment changes in a batch file. EGA.SYS Saves display when configuring EGA monitors. EMM386/EMM386.EXE Extended memory manager for older PCs with less memory. ERASE Works the same as DEL, I have seen no differences between the two in the options or switches. Deletes one or more files. EXE2BIN Converts .EXE files to binary format. EXIT Exits command shell. General. Batch file use. Quits the command line prompt, closes the DOS window, quits CMD.EXE, stops batch files. EXPAND Expands compressed files. Specifically Windows .cab files. Similar to unzip. ---F---FASTHELP Not present in most new versions. Gave quick access to DOS command help, listed all commands with brief descriptions. FASTOPEN FASTOPEN will keep track of the last location of designated files. After applying FASTOPEN you can type the name of the file in any directory and it will open, unless the file has been moved. It may only be possible to access FASTOPEN from system32. FC "File Compare", this compares the contents of two files and displays the differences(displayed as text) between them. Compares two files or sets of files, and displays the differences between them. FCBS Sets the number of File Control BlockS that a program can have open. config.sys FDISK Set up hard drive partitions. More. FILE See NET FILES Sets the number of files that may be open at any given time. config.sys. FIND Search for a string in a file or files. More. FINDSTR Search for a string in a file or files. More powerful than FIND. FINGER
Display information about a user on a remote system. FOR Runs a specified command for each file in a set of files. More. FOR...IN...DO Runs a specified command for each file in a set of files. More FORCEDOS
FORCEDOS [/D directory] filename [parameters] FORMAT Formats fixed and removable disks. More. Formats a disk for use with Windows NT. FTP DOS FTP utility. More. FTYP or FTYPE Displays or modifies file types used in file extension associations. ---G---GOTO Jump to a section in a batch file. More. Directs the Windows NT command interpreter to a labeled line in a batch program. GRAFTABL Extends the windows character set by setting the Active Code Page which is usually determined by the COUNTRY command in config.sys. Can also be done with CHCP. Enables Windows NT to display an extended character set in graphics mode. GRAPHICS Loads a program that can prints graphics. GROUP See NET. ---H---HELP and ?
Call up help files for DOS commands. HELPMSG See NET. HELP SERVICES See NET. HELP SYNTAX See NET. HIMEM.SYS ---I---INCLUDE Used within config.sys. IF, IF EXIST, and IF NOT EXIST Performs boolean operations in batch files. More. Performs conditional processing in batch programs. INTERLNK More. INTERSVR More. INSTALL Loads a TSR. config.sys IPCONFIG In older windows versions it is winipconfig. Shows and modifies IP configuration. More. WINNT. ---J---JOIN Connects 2 disk drives ---K---KEYB More. Configures a keyboard for a specific language. ---L---LABEL Labels disks. More. Creates, changes, or deletes the volume label of a disk. LASTDRIVE Determine the last usable drive letter on a system. More. config.sys. LOADFIX Load and run a program above the first 64k of memory. LOADHIGH OR LH Load a program in the high area of memory. LOCALGROUP See NET. LPT For specifying an output location. LTP1, LTP2, LPT3, PRN. More. ---M---MAKECERT For creating certificates on the MS Server 2003 Certificate Service. MAKECERT usually has to be downloaded and does not come installed with Server 2003. Using MAKECERTAbout Public Keys. MEM More. MEMMAKER Program which optimises memory. Type HELP MEMMAKER to open the GUI interface. MENUCOLR
Used with SUBMENU. MENUDEFAULT
Used with SUBMENU. Creates directories(folders). More. MODE Configures a system device. MORE Controls the output of a DOS command when preceded by the pipe: '|'. More. Displays output one screen at a time. Preceded by the pipe "|" character. MORE is a filter. MOVE
Moves files from one location to another, as opposed to copying. The MOVE
command combines COPY and DELETE by copying a file then deleting the
original. MSAV MicroSoft AntiVirus that runs from DOS. Type MSAV C: to run it on your C: drive. MSCDEX More. MIRROR Creates a copy of your drive to prevent data loss. The drive may be restored from the mirror file: MIRROR.FIL if the drive is erased. MSBACKUP MicroSoft Backup software that runs in DOS. Type HELP MSBACKUP to open the GUI interface. MSD A DOS interface which provides information about your computer, specifically information about serial and parallel ports. MSD.EXE is not part a typical installation. Type MSD at a command line to open the interface. More. ---N---NBTSTAT Obtains network protcol information using NETBios instead of TCP/IP NAME See NET. NET
Various network utilities. NET ACCOUNTS, NET CONFIG SERVER, NET COMPUTER, NET CONFIG, NET CONFIG WORKSTATION, NET CONTINUE, NET FILE, NET GROUP, NET HELP, NET HELP SERVICES, NET HELP SYNTAX, NET HELPMSG, NET LOCALGROUP, NET NAME, NET PAUSE, NET PRINT, NET SEND, NET SESSION, NET SHARE, NET STATISTICS, NET START, NET STOP, NET TIME, NET USE, NET USER, NET VIEW More.NETSH A network tool. NETSTAT Shows local network activity. More. NUMLOCK Turns the keyboard number pad lock on or off. More. NLSFUNC More. NSLOOKUP More. ---O------P---PATH Sets a directory search order, a batch command. More. Displays or sets a search path for executable files. PAUSE Prompts for user input during a batch file run. More. Also see NET. Suspends processing of a batch file and displays a message. PING Send a bit stream to a remote host. More. POPD Restores the previous value of the current directory saved by PUSHD. POWER For laptops and portable devices, to conserve batteries. Not available on all versions, only works with text files, hangs a lot. I have not found it to be too useful. Example: PRINT MYFILE.TXT See NET. Prints a text file. PROMPT Modifies the DOS prompt. More. Changes the Windows NT command prompt. PUSHD Saves the current directory then changes it. ---Q---QBASIC The QBasic development shell. This program is probably not present or not loaded with Windows unless requested. This is the BASIC language development environment. It has been replaced by various "visual basic" programs that allow for the creation of Windows applications. QBASIC is a command-line editor that allows you to write some powerful executable programs. You may download it from various sites if you don't have it. More. ---R---RAMDRIVE.SYS Create a virtual drive in memory. RD and RMDIR Removes a directory. RECOVER Recovers data from a corrupted disk. This is not an "undelete" command. Recovers readable information from a bad or defective disk. REGSVR32 Registers DLLs with the system. REGEDIT Calls the Windows Registry Editor. More. REM "REMark", Records comments in batch files. More. REN or RENAME
REPLACE Replaces one designated file with a second designated file. Replaces files. RESTORE Restores files that were backed up by using the BACKUP command. RMDIR or RD Remove directory More. ROUTE Manipulates network routing tables More. RUNAS Used to start a program on another machine as if it were being run locally, or under a different profile. RUNAS is often disabled for security reasons. Disable RUNAS. More: 1, 2 RUNDLL32 More. ---S---SC
"Configure Services" on a WINNT server. Services can be found
Start, Settings, Control Pannel, Administrative Tools, Services.
Services are typically background processes that are started
automatically when a machine is booted. Services exist on
client machines, but the SC command is usually only available
to administrator accounts. Services are often created through
installation/setup scripts. The SC command allows you to create
and configure services on the command line since the Services
GUI generally has no interface for creating services although you
can stop/start and modify services through the interface. Example:
DESCRIPTION: SCANDISK Check a disk for errors and repair. More. SEND See NET. SESSION See NET. SET
More. SETLOCAL Begins localization of environment changes in a batch file. SETVER Set the DOS version reported to a program. SHARE See NET. SHELL Specify which COMMAND.COM file to use SHIFT Changes the position of replaceble parameters in a batch file. More. Shifts the position of replaceable parameters in batch files. SMARTDRV and SMARTDRV.EXE Allows disk space to be used for virtual memory SORT SORT < textfile.txt > sortedfile.txt STACKS Specifies the size and number of stacks used for hardware interupts. config.sys START Open a process or command in a new DOS window. Exampe: "START CMD" would open DOS in a second window. Starts a separate window to run a specified program or command. Also see NET. STATISTICS See NET. STOP See NET. SUBMENU
Set in config.sys. SUBST Associate a path with a drive letter. SWAPDISK
A way of extending limited PC resources.
SWAPDISK=drive location would designate
space to be used to swap applications. SYS Place system files on a disk. More. ---T---TELNET Windows terminal emulator. For connecting to remote hosts with varying operating systems. More. TIME Show the system time and alows you to change it. Type with no parameters to change the time, enter TIME/t to show the time without propmting the change. You may also enter TIME followed by a new time, but it must be the full time including seconds, mircoseconds and am or pm. Example: TIME 12:30:00.00 PM. More. Also see NET Displays or sets the system time. TITLE
Changes the title of the command window. TRACERT Trace a network path. Graphically displays the directory structure of a drive or path. More. TREE Displays a graphic direcotry map. More. TYPE
---U---UNDELETE Restore deleted files. When you DEL on a file, it does not actually delete the file but rests the disk area occupied by the file to be reused. UNDELETE Does not seem to be present in many versions of NT. UNFORMAT More. UNINST
Windows uninstall from command line, for removing registered programs.
Found in C:\windows or C:\WINNT. Programs often come with a custom version
of UNINST.EXE.
USE See NET USER See NET. ---V---VER This program will reveal what version of DOS you are using. Type VER. Displays the Windows NT version. VERIFY If turned on, reports whether or not files were saved correctly. VERIFY is usually off. Type VERIFY to see if it is on or off. VERIFY ON or OFF to change the setting. Tells Windows NT whether to verify that your files are written correctly to a disk. VIEW See NET VOL Shows the volume name of a drive or disk. Type VOL C: or VOL A: if you have a disk in the floppy drive. Displays a disk volume label and serial number. VSAFE Virus protection software. ---W---WIN Laucnhed Windows from older DOS systems. Was run manually at first, then the command was in the AUTOEXEC.BAT. Some DOS users were annoyed at the forced start-up of Windows and removed the WIN command form the AUTOEXEC.BAT. I have noticed that in some versions of NT the WIN command does not generate an error but also does not do anything. WINIPCONFIG Shows and modifies IP configuration. This is not supported in NT/ME/XP/2000, use IPCONFIG. Typical Microsoft annoyance, there is no warning or support if you type winipconfig in WINNT, it should direct you ipconfig. ---X---XCOPY Extends the COPY command. Copies files and directory trees. More. ---Y------Z---Not here? Try this site: NT Command Reference ![]() |


