Function Comparisons for PC Operating Systems
DOS
Append
append [[drive:]path[; ]]
Treat files in other directories as if they were in the current directory
Attribute
attrib [+attribute|-attribute][drive:][path]filename]
Turn four attributes (h(hidden), r(read-only), a(archive), s(system)) on or off.
Break
break [on|off]
Specify how frequently DOS is to check for the Ctrl-C combination that interrupts programs.
Buffers
buffers=n[,m]
Use in the CONFIG.SYS to set the number of buffers in memory.
Call
call [drive:][path]filename [batch-parameters]
Used in a batch file to start a second batch file and then return to the first one.
Change Directory
cd [drive:][path]
chdir [drive:][path]
Used to move to another directory
Change Code Page
chcp [nnn]
Used to change the code page so that you can use a language other than English.
Check Disk
chkdsk [drive:][[path]filename]
Used to check for errors in a disks file allocation table (FAT).
Ctty
ctty device
Used to change the terminal device used to control your system
Date
date [mm-dd-yy]
Used to display the current date.
Dblspace
dblspace
Used to compress a drive containing files
Debug
debug [[drive:][path]filename
Used to debug code, files and examining memory.
Defrag
defrag [drive:] [/f] [/s[:]order] [/b] [/skiphigh] [/1cd|/bw|/go] [/h]
Used to rewrite all files on the specified drive so that they occupy contiguous blocks.
Delete
del [drive:][path]filename [/p]
Used to erase file(s) from a disk.
Deltree
deltree [/y] [drive:]path
Used to delete a directory
Device and Devicehigh
device=[drive:][path]filename
devicehigh=[drive:][path]filename
Used in CONFIG.SYS to load device drivers
Directory
dir [drive:][path][filename
Used to display the names, sizes, and creation dates of the files in a specific directory.
Diskcomp
diskcomp [drive1: [drive2:]]
Used to compare the contents of two floppy disks.
Diskcopy
diskcopy [drive1: [drive2:]]
Used to copy the contents of one floppy disk to another.
Dos
dos=high|low[,umb|,noumb
Used to load DOS into the high memory area
Doskey
doskey [/reinstall] [/bufsize=size] [
Used to load the memory-resident DOS-key program.
Dosshell
dosshell [/t[:res[n]]] [/b]
Used to load the DOS shell.
Drivparm
drivparm=/d:number [/c] etc.
Used in CONFIG.
Sys to define specialized drive parameters.
Echo
echo [on|off]
Used in batch files to display (echo on) or suppress (echo off) the display of commands.
Edit
edit [[drive:][path]filename
Used to load MS Editor.
Emm386
emm386 [on|off|auto]
Used for tasks related to memory management.
Exit
exit
Used to return to the shell from a command prompt.
Expand
expand [drive:][path]filename
Used to expand compressed files as they are copied.
Fastopen
fastopen drive:[[=]n]
Used to reduce the time necessary to access files and directories.
Fc
fc [optional switches] [drive1:][path1]fielname1 [drive2:][path2]filename2
Used to compare two files and make a list of any differences between them.
File Control Blocks
fcbs=c
Used in CONFIG.SYS to specify how many file control blacks can be open at once.
Format Disk
fdisk
Used to create, delete, and modify partitions on a hard disk.
Files
files=x
Used in CONFIG.SYS to specify the number of files than DOS can have open simultaneously.
Find
find [/v] [/c] [/n] [/I] "string" [[drive:][path]filename[ ]]
Used to search a file for words or phrases.
For
for %variable in (set) do command
Used to run the same command on a set of files.
Format
format drive: [/v[:label]]
Used to prepare disks for storing information.
Goto
goto label
Used to jump to a line that you have marked with a label.
Graphics
graphics [type] [[drive:][path]filename] [/r] [/b]
Used enable printing of screens generated in graphics mode or on a color monitor.
Help
help [/b] [/g] [/h]
Used to get online information about DOS commands.
If
if [not] exist filename command
If [not] string1==string2 command
If [not] error level number command
Used to have a batch file carry out different actions depending on whether or not a specified condition exists.
Include
include=blockname
Used in a CONFIG.SYS file that sets up multiple configurations to include one configuration block in another configuration block.
Install
install=[drive:][path]filename [command-parameters]
Used in CONFIG.SYS to load a memory-resident program each time you start your computer.
Interink
interink [client[:]=[server][:]]
Used to start the InterLink program.
Intersvr
intersvr [drive:[ ]] [/x=drive:[ ]]
Used to start the InterLink server.
Keyb
keyb [xx[,[yyy][,[drive:][path]filename]]]
Used to configure your keyboard for a language other than U. S. English.
Label
label [drive:][label]
Used to create, modify, or delete a disk's volume label.
Lastdrive
lastdrive=x
Used in CONFIG.SYS to specify the drive letter that represents the maximum number of sequentially lettered drives you can have in your system.
Loadfix
loadfix [drive:][path]filename
Used to load a specified program into conventional memory, but avoids the first 64 KB of conventional memory.
Loadhigh
loadhigh [drive:][path]filename
Used in the AUTOEXEC.BAT to load the specified program into upper memory.
Md orMkdir
md [drive:]path
Mkdir [drive:]path
Used to create a new directory. (Mkdir is an alternative form of this command.)
Mem
mem [/classify|/debug|/free|/module modulename][/page]
Used to find out how much memory your computer has and how that memory is being used.
Memmaker
memmaker[/b] [/batch] [/session] [/swap:drive] [/t] [/undo] [/w:n,m]
Used to run the MemMaker program.
Menucolor, Menudefault, and Menuitem
menucolor=x[,y]
Menudefault=blockname[,timeout]
Menuitem=blockname[,menu_text]
Used in the CONFIG.SYS to set up multiple system configurations.
Mode
See online help for possible syntaxes.
Used to configure ports or devices.
More
more < [drive:][path]filename
Used to display information one screenful at a time.
Move
move [drive:][path]filename[,[drive:][path]filename[ ]] destination
Used to move a file or group of files to another drive or directory or to rename a file or group of files.
MSAV
msav [drive:] [/s|/c] [/r] [/a|/l] [/n] [/p] [/f] [/video]
Used to run the Microsoft Anti-Virus program.
MSBackup
msbackup [setup_file] [/bw] [/lcd] [/mda]
Used to run the Microsoft Backup program.
MSD
msd [/I] [/f[drive:][path]filename] [/p[drive:][path]filename] [/s[drive:][path][filename]]
Used to display information about your system components.
Nlsfunc
nlsfunc [[drive:][path]filename]
Used in support of a language other than English.
Numlock
numlock=[on|off]
Used in the CONFIG.SYS to specify whether the NumLock key is set on or off.
Path
path [[drive:]path[; ]]
Used to display the current path or set a new one.
Pause
pause
Used to temporarily halt batch-file processing.
Power
power [adv[:max|reg|min]|std|off]
Used with battery-powered laptop computers to turn power management on or off.
print [[drive:][path]filename[ ]]
Used to print unformatted text files on compatible printers.
Prompt
prompt [text]
Used to change your system prompt.
QBasic
qbasic [[/run][drive:][path]filename]
Used to start the QBasic interpreter.
Rd or Rmdir
rd [drive:]path
Rmdir [drive:]path
Used to delete a directory. (Rmdir is an alternative form.)
Rem
rem [string]
Used to embed messages and comments in a batch file or your CONFIG.SYS file.
Ren or Rename
ren [drive:][path]filename1 filename2
Rename [drive:][path]filename1 filename2
Used to change the names of files stored on your computer before copying the new versions from disk.
Replace
replace [ddrive1:][path1]filename [drive2:][path2] [/a] [/p] [/r] [/w]
Used to make sure that all the files are updated to the current version.
Set
set [variable=[string]]
Used to modify DOS environment variables.
Setver
setver [drive:path][filename n.nn]
Used to tell DOS to send a version number other than 6 to applications that are designed for specific DOS versions.
Shell
shell=[[drive:]path]filename [parameters]
Used in the CONFIG.SYS if you want to use a command interpreter other than COMMAND.COM.
Shift
shift
Used in batch files to change he valve of parameters.
Smartdrv
smartdrv
Used to run the SMARTDrive disk-caching program.
Sort
sort [/r] [/+n] [<] drive:][path1]filename1 [> [drive2][path2]filename2]
Used to sort files of up to 64 KB and either display the results on the screen or redirect them to a file.
Stacks
stacks=n,s
Used in the CONFIG,SYS to set up storage places in memory for internal functions.
Submenu
submenu=blockname[,menu_text
Used in the CONFIG.SYS file that defines multiple system configurations to set up a menu item that displays another menu when chosen.
Subst
subst [drive1: [drive2]path]
Used to assign a drive letter as a substitute for a directory name.
Switches
switches=/w /k /n /f
Used in the CONFIG.SYS to set specialized options for DOS.
Sys
sys [drive1:][path] drive2:
Used to create a bootable disk.
Time
time [hours:[minutes[:seconds[.hundredths]]][a|p]]
Used to display the current time, as recorded by your computer's clock, and to change the time.
Tree
tree [drive:][path] [/f] [/a]
Used to graphically represent he directory hierarchy of a disk or drive.
Type
type [drive:][path]filename
Used in short files to display its contents on the screen.
Undelete
undelete [[drive:][path]filename]
Used to restore accidentally deleted files to a hard or floppy disk.
Unformat
unformat drive: [/1] [/test] [/p]
Used to attempt to restore an accidentally formatted disk.
Ver
ver
Used to display the version of DOS that is running on your system.
Verify
verify [on|off]
Used to tell DOS to verify that no data is written to bad sectors on the disk.
Vol
vol [drive:]
Used to display a disk's volume label and serial number.
VSafe
vsafe [/option[+|-] ] [/ne] [/nx] [/ax|cx] [/n] [/d] [/u]
Used to start Microsoft Vsafe, a memory-resident program that monitors your computer for potential virus activity.
Xcopy
xcopy source [destination] [/a|/m] [/d:date] [/p] [/s [/e]] [/v] [/w]
Used as a powerful variation of the Copy command.