You are on page 1of 11

append o /S - Process matching files in the

current folder and all subfolders.


Display or sets the search path for data files. DOS will
search the specified path(s) if the file is not found in the Note: Everything inside a brace [option] is an optional
current path. This had some creative uses, such as item. Roughly equivalent to the Unix commands chattr
allowing non-CD based games to be run from the CD, and lsattr.
with configuration/save files stored on the HD.
backup and restore
append;
append [d:]path[;][d:]path[...] Programs to back up and restore files from an
append [/X:on|off][/E] external disk. These appeared in version 2, and
continued to PC-DOS 5 and MS-DOS 6 (PC-DOS
assign 7 had a deversioned check).
In DOS 6, these were replaced by commercial
The command redirects requests for disk operations on programs (CPBACKUP, MSBACKUP), which
one drive to a different drive. allowed files to be restored to different
locations.
assign [x[:]=y[:][...]]
assign /STATUS BASIC and BASICA

Options: An implementation of the BASIC programming


language for PCs.
 x The drive letter to reassign. IBM computers had BASIC 1.1 in ROM, and
 y The drive letter that x: will be assigned to. IBM's versions of BASIC used code in this ROM-
 /STATUS Displays the current drive BASIC, which allowed for extra memory in the
assignments. code area. BASICA last appeared in IBMDOS
5.02, and in OS/2 (2.0 and later), the version
If typed without parameters then all drive had ROMBASIC moved into the program code.
letters are reset to original assignments. Microsoft released GW-BASIC for machines with
The command is available in MS-DOS 5.00. no ROM-BASIC. Some OEM releases had
basic.com and basica.com as loaders for GW-
attrib BASIC.EXE.

Change or view the attributes of one or more Call


files. It defaults to displaying the attributes of all
files in the current directory. Calls one batch program from another. A new
batch file context is created with the specified
arguments and control is passed to the
statement after the label specified.
ATTRIB [+R|-R] [+A|-A] [+S|-S] [+H|-H][drive:][path]
[filename] [/S [/D]] Syntax:

Options: call [filespec][batch file parameters]

 To add an attribute attach a '+' in front of it.  filespec: name and if necessary path of the new
 To remove an attribute attach a '-' in front of it batch file
 Attributes include  parameters: switches
o R - Read-only
o A - Archive cd or chdir
o S - System
o H - Hidden Change current working directory. Displays the
o /D - Process folders as well. current working directory when used without a
path parameter.
cd  /R : Searches for defective sectors and recovers
legible information (applies /F)
displays the current working directory on the current  /X : Unmounts the volume before processing if
drive. needed. (Note: Unmounting temporarily
invalidates all pointers/handlers to the volume
until process is completed)

cd directory chkdsk volume letter: [[path]filename] [/F] [/P] [/R] [/X]


Equivalent to the Unix command fsck
changes the working directory on the current drive to
directory. choice

chdir e:directory Allows for batch files to prompt the user to


select one item from a set of single-character
changes the working directory on E: to directory. choices.
Introduced in MS-DOS 6;[1] DR-DOS 7.03.[2]
cd .. Earlier versions of DR-DOS supported this
function with the switch command (for numeric
changes the working directory to the parent directory choices) or by beginning a command with a
(up one directory level). question mark.[2]

cd \ cls

changes the working directory to the root (top level) Clears the screen.
directory of the current drive. cls
Equivalent to the Unix clear.
Equivalent to the Unix command cd (with a path
parameter), or pwd (without a parameter). cd .. copy
changes to the parent directory.
Copies files from one location to another. The
chcp destination defaults to the current directory. If
multiple source files are indicated, the
Changes the code page used to display destination must be a directory, or an error will
character glyphs in a console window. result.
chcp [codepage] Syntax:
copy from [source\filename] to [destination\folder]
With a numeric parameter, this command changes the Files may be copied to devices. For example,
codepage setting to codepage. Without a parameter, copy file lpt1 sends the file to the printer on
the command displays the currently active codepage. LPT1. copy file con outputs file to the screen
("console"), which can also be done using type
chkdsk file. Devices themselves may be copied: copy
con file takes the text typed into the console
Verifies a storage volume (hard disk, partition, and puts it into file, stopping when EOF (Ctrl+Z)
floppy disk, flash drive, etc) for file system is typed.
integrity. Files may be concatenated using +. For
example, copy file1+file2 file_cat will
concatenate the files and output them as
Options:
file_cat. There are two switches to modify the
command's behaviour, /a (text mode, the
 /F : Fixes errors on the volume (without /F ,
default) and /b (binary mode). In text mode,
chkdsk only detects errors)
copy will stop when it reaches the EOF
 /P : Forces a full verification
character; in binary mode, the files will be
concatenated in their entirety, ignoring EOF Syntax:
characters.
Examples of usage: del filename
copy /a alpha.txt + beta.txt gamma.txt erase filename
copy /b alpha.mpg + beta.mpg gamma.mpg
Equivalent Unix commands are cp (for copying)
and cat (for concatenation). Device files may be Options
copied in Unix as well, e.g. cp file /dev/tty will
display a file on the screen (but cat file is more *.* All files in current folder
commonly used here). *.* /s all files in current folder and sub folders,
Equivalent RT-11/RSX-11/OpenVMS command Equivalent to the Unix command rm.
is copy. Equivalent in RT-11/RSX-11/OpenVMS
Examples of usage: operating systems line is delete command
copy con filename.extension which can be contracted to del.

Everything typed at the console is sent to the file, until a deltree


control Z character is typed.
Deletes a directory along with all of the files and
ctty subdirectories that it contains. Normally, it will
ask for confirmation of such a drastic action.
Defines the device to use for input and output. deltree [/y] directory
Syntax:
ctty device The /y parameter, if present, tells the deltree command
to carry out without first prompting for confirmation.
 device: The terminal device to be used.
The deltree command is not included in recent
Example of usage: Microsoft Windows operating systems. Deleting a non-
ctty COM1 empty directory in those versions of Windows where
the command is not included, can be achieved by using
defrag the rmdir command as in the following example:

(in MS/PC-DOS; diskopt in DR-DOS) rmdir /s [/q] directory

Defragments a disk drive. In Unix, the functionality of deltree is provided by the


Options: rm command with the parameter -r (or -rf for the /y
switch).
 -A – Analyses the fragmentation of a
disk drive dir
 -F – Force defragmentation even if disk
space is low Lists the contents of a directory.
 -V – Verbose output mode
 -H – Defrag hidden files The dir command typed by itself, displays the disk's
volume label and serial number; one directory or
Example of usage: filename per line, including the filename extension, the
defrag driveletter: -a -v file size in bytes, and the date and time the file was last
No Unix equivalent. modified; and the total number of files listed, their
cumulative size, and the free space (in bytes) remaining
del or erase on the disk. The command is one of the few commands
that exist from the first versions of DOS.
Deletes one or more files.
dir [drive:][path][filename] [parameters]
This command is used to delete a particular or more
files.
Most commonly used parameters of dir include: other command. Often used in batch files to
print text out to the user.
 /W : Displays the listing in wide format, with as echo this is text Outputs 'this is text'
many as five filenames or directory names on echo. Outputs a blank line
each line. Another important use of the echo command is
 /P : Pause at every page to toggle echoing of commands on and off in
 /S : Also look in subdirectories batch files.
 /Axx: Display files with the specified attributes echo on turns on echoing of commands
only echo off turns off echoing of commands
 /Oxx: Modifies sort order Traditionally batch files begin with the @echo
 /B : Uses bare format (no heading information off statement. This says to the interpreter that
or summary) echoing of commands should be off during the
 > [drive:][path][filename] : To Store Result in a whole execution of the batch file thus resulting
text file;(c:\dir > c:\fileList.txt) (this is not a in a "tidier" output. The @ symbol declares that
parameter, it is output redirection) this particular command (echo off) should also
be executed without echo. For example the
Possible attributes for the A parameter are D following 2 batch files are equivalent:
(directories), R (read-only files), H (hidden files), A Batch1.bat:
(files/directories with the archive bit on), and S (system @echo off
files). The prefix - negates an attribute; attributes can be echo The files in your root directory:
combined (e.g. /A:DA means directories with the dir /b /a-d c:\
archive bit on). Batch2.bat:
@echo The files in your root directory:
Possible sort orders are N (name), S (size), E (extension), @dir /b /a-d c:\
D (date and time), A (last access date), and G (group Echo can be used to write to files directly from
directories first). The prefix - reverses the order. the console, by redirecting the output stream:
echo text > filename
Other less commonly used parameters of dir include: Echo can also be used to append to files directly
from the console, again by redirecting the
 /D : Display wide format but sorted by column output stream:
 /L : Display forced into lowercase echo text >> filename
 /N : Display forced into long file name format To type more than one line from the console
instead of 8.3 into a file, use copy con (above).
 /Q : Displays the owner of each file Equivalent to the Unix command echo.
 /X : Display shows 8.3 names next to long file
names edit

The default parameters of dir can be set using the Full-screen text editor, included with MS-DOS 5
DIRCMD environment variable. and 6, OS/2 and Windows NT to 4.0

Equivalent to the Unix command ls (the option -l is  Windows 95 and later, and W2k and later use
"long" list format, it works the opposite way from /w.) Edit v 2.0
 PC-DOS 6 and later use the DOS E Editor.
Equivalent in RT-11/RSX-11/OpenVMS operating  DR-DOS used editor up to version 7.
systems line is directory command which can be
contracted to dir. edlin

echo DOS line-editor. It can be used with a script file,


like debug, this makes it of some use even
Prints its own arguments back out to the DOS today. The absence of a console editor in
equivalent of the standard output stream. MS/PC-DOS 1-4 created an after-market for
Usually, this means directly to the screen, but third-party editors.
the output of echo can be redirected like any
In DOS 5, an extra command "?" was added to /T Does not expand tabs to spaces.
give the user much needed help. /W Compresses white space (tabs and spaces) for
DOS 6 was the last version to contain EDLIN, for comparison.
MS-DOS 6, it's on the supplemental disks, PC- /nnnn Specifies the number of consecutive lines that
DOS 6 had it in the base install. Windows NT 32- must match after a mismatch.
bit, and OS/2 have Edlin. [drive1:][path1]filename1 Specifies the first file or
set of files to compare.
exe2bin [drive2:][path2]filename2 Specifies the second file
or set of files to compare.[citation needed]
Converts an executable (.exe) file into a binary Equivalent to the Unix commands comm, cmp
file with the extension .com, which is a memory and diff.
image of the program.
The size of the resident code and data sections fdisk
combined in the input .exe file must be less
than 64KB. The file must also have no stack Manipulates hard disk partition tables. The
segment. name derives from IBM's habit of calling hard
drives fixed disks. When run from the command
exit line, it displays a menu of various partitioning
operations:
Exits the current command processor. If the exit 1. Create DOS partition or Logical DOS Drive
is used at the primary command, it has no effect 2. Set active partition
unless in a DOS window under Microsoft 3. Delete partition or Logical DOS Drive
Windows, in which case the window is closed 4. Display partition information
and the user returns to the desktop. 5. Change current fixed disk drive (only available if the
exit [/B] computer has more than one hard drive)
/B When used within a batch script, exits the script FDISK /MBR installs a standard master boot
without closing the calling DOS window record on the hard drive.
Exit also exists in Unix-shells. If an exit FDISK /MBR #: where # is other partition on
command is used in the primary command shell system. Completes above command on
under Unix, however, it will logoff the user, indicated partition.
similar to the control-D keystroke. e.g.: "C:\FDISK /MBR D:" would install boot
record on D:\ partition.
fastopen Fdisk exists under Unix with the same name,
but it is an entirely different program. However
Main article: FASTOPEN they share purposes.

fc or comp find

Compares two files or sets of files and displays A filter to find lines in the input data stream
the differences between them. that contain or don't contain a specified string
FC [/A] [/C] [/L] [/LBn] [/N] [/T] [/W] [/nnnn] [drive1:] and send these to the output data stream.
[path1]filename1 [drive2:][path2]filename2 Find may also be used as a pipe.
FC /B [drive1:][path1]filename1 [drive2:] find "keyword" < ''inputfilename'' > ''outputfilename''
[path2]filename2
/A Displays only first and last lines for each set of Searches for a text string in a file or files.
differences.
/B Performs a binary comparison. FIND [/V] [/C] [/N] [/I] "string" [[drive:]
/C Disregards the case of letters. [path]filename[ ...]]
/L Compares files as ASCII text.
/LBn Sets the maximum consecutive mismatches /V Displays all lines NOT containing the specified
to the specified number of lines. string.
/N Displays the line numbers on an ASCII /C Displays only the count of lines containing the
comparison. string.
/N Displays line numbers with the displayed lines. which can not create filesystem. After
/I Ignores the case of characters when searching formatting one should use initialize (contracted
for the string. to init) command to create filesystem
"string" Specifies the text string to find. (Equivalent to MS-DOS command format /q or
[drive:][path]filename Specifies a file or files to search. "quick format").

If a pathname is not specified, FIND searches the text help


typed at the prompt
or piped from another command. Gives help about DOS.
Equivalent to the Unix command grep. The Unix MS-DOS
command find performs an entirely different help 'command' would give help on a specific
function analogous to dir /s. command. By itself, it lists the contents of
DOSHELP.HLP. Help for a specific command
format invokes the command with the /? option. In
MS-DOS 6.x this command exists as FASTHELP.
Delete all the files on the disk and reformat it MS-DOS 6.xx help command uses QBASIC to
for MS-DOS view a quickhelp HELP.HLP file, which contains
In most cases, this should only be used on more extensive information on the commands,
floppy drives or other removable media. This with some hyperlinking etc. The MS-DOS 6.22
command can potentially erase everything on a help system is included on Windows 9x cdrom
computer's hard disk. versions as well.
/autotest and /backup are undocumented PC-DOS
features. Both will format the drive without a PC-DOS 7.xx help uses view.exe to open OS/2
confirmation prompt. style .INF files (cmdref.inf, dosrexx.inf and
format [options] drive doserror.inf), opening these to the appropriate
FORMAT drive: [/V[:label]] [/Q] [/F:size] [/B | /S] [/C] pages.
FORMAT drive: [/V[:label]] [/Q] [/T:tracks /N:sectors] DR-DOS
[/B | /S] [/C] In DR-DOS, help is a batch file that launches DR-
FORMAT drive: [/V[:label]] [/Q] [/1] [/4] [/B | /S] [/C] DOS' online reference, dosbook.
FORMAT drive: [/Q] [/1] [/4] [/8] [/B | /S] [/C] Microsoft Windows
/V[:label] Specifies the volume label. Windows NT, all versions, uses DOS 5 style help,
/Q Performs a quick format. but versions before VISTA have also a Windows
/F:size Specifies the size of the floppy disk to format help file (NTCMDS.HLP or NTCMDS.INF) in a
(such similar style to MS-DOS 6.
as 160, 180, 320, 360, 720, 1.2, 1.44, 2.88). FreeDOS
/B Allocates space on the formatted disk for FreeDOS uses an HTML help system, which
system files. views HTML help files on a specified path. The
/S Copies system files to the formatted disk. path is stored in HELPPATH environment
/T:tracks Specifies the number of tracks per disk side. variable, if not specified, default path is \HELP
/N:sectors Specifies the number of sectors per track. on the drive which HELP is placed.
/1 Formats a single side of a floppy disk. Partially equivalent to the Unix command man.
/4 Formats a 5.25-inch 360K floppy disk in a high-
density drive. intersvr & interlnk
/8 Formats eight sectors per track.
/C Tests clusters that are currently marked "bad." (in MS-DOS; filelink in DR-DOS)
There is also an undocumented /u parameter
for "unconditional" that will write strings of Network PCs using a null modem cable or
zeros on every sector. This is now an official LapLink cable. The server-side version of
switch in Windows Vista and 7 but with the InterLnk, it also immobilizes the machine it's
parameter /p instead. running on as it is an active app (As opposed to
Equivalent to the Unix command mkfs. a TSR) which must be running for any transfer
Equivalent in RT-11/RSX-11/OpenVMS to take place. DR-DOS' filelink is executed on
operating systems line is format command both the client and server.
New in PC-DOS 5.02, MS-DOS 6.0[3] Options:
No direct Unix equivalent, though some Unices
offer the ability to network computers with  /CLASSIFY or /C - Lists the size of programs,
TCP/IP through null modem or Laplink cables provides a summary of memory in use and lists
using PLIP or SLIP. largest memory block available.
 /DEBUG or /D - Displays status of programs,
join internal drivers, and other information.
 /PROGRAM or /P Displays status of programs
Attaches a drive letter to a specified directory currently loaded in memory.
on another drive.[3]
JOIN d: [d:\path] Equivalent to the Unix command free.
JOIN [/D] (removes drive assignment)
If JOIN a: c:\floppy were executed, c:\floppy memmaker
would display the contents of the a: drive. The
opposite can be achieved via the subst Starting from version 6, MS-DOS included the
command. external program MemMaker which was used
to free system memory (especially Conventional
label memory) by automatically reconfiguring the
AUTOEXEC.BAT and CONFIG.SYS files. This was
Changes the label on a logical drive, such as a usually done by moving TSR Programs to the
hard disk partition or a floppy disk. Upper memory. The whole process required
In Unix and Unix-like systems, this differs from three system restarts. Before the first restart
filesystem to filesystem. e2label can be used for the user was asked whether he/she wanted to
ext2 partitions. enable EMS Memory or not.
The use of MemMaker was popular among
loadfix gamers who wanted to enable or disable
Expanded memory in order to run a game
Loads a program above the first 64K of memory, which required EMS or not. Better results could
and runs the program. be achieved by an experienced user manually
loadfix [drive:][path]filename configuring the startup files to achieve greater
Included only in MS/PC-DOS. DR-DOS used free memory yield.
memmax, which opened or closed lower,
upper, and video memory access, to block the Options:
lower 64K of memory.[4]
 /BATCH Runs MemMaker in batch (unattended)
loadhigh, lh mode. In batch mode, MemMaker takes the
default action at all prompts.
Main article: loadhigh  /UNDO Instructs MemMaker to undo its most
hiload in DR-DOS. recent changes.

md or mkdir PC-DOS uses another program RamBoost to


optimize memory, either the HIMEM/EMM386
Makes a new directory. The parent of the or a third-party memory manager.
directory specified will be created if it does not
already exist. mode
md directory
Equivalent to the Unix command mkdir. Configures system devices. Changes graphics
modes, adjusts keyboard settings, prepares
mem code pages, and sets up port redirection.[5]

Displays memory usage. more


mem
Pages through the output so that you can view Adds a file in the print queue.
more than one screen of text.
command | more Options:
Equivalent to the Unix commands more and
less.  /D device  : Specifies the name of the print
More may also be used as a filter. devices. Default value is LPT1
more < inputfilename  /P filename : Add files in the print queue
 /T : Removes all files from the print queue
move  /C filename : Removes a file from the print
queue
Moves files or renames directories.
move filename newname This command was introduced in MS-DOS version 2.
move driveletter:\olddir driveletter:\newdir Before that there was no built-in support for
Example of usage: background printing files. The user would usually use
move c:\old c:\new the copy command to copy files to LPT1.
Equivalent to the Unix command mv. DR-DOS
used a separate command for renaming Equivalent to the Unix commands lp and lpr.
directories, rendir.
rd or rmdir
msd
Remove a directory, which by default must be
Main article: Microsoft Diagnostics empty of files for the command to succeed
Provides detailed technical information about (the /s flag removes this restriction).
the computer's hardware and software. rd directory
msd Equivalent to the Unix command rmdir.
New in MS-DOS 6;[6] the PC-DOS version of this
command is QCONFIG.[citation needed] rem
No Unix equivalent, however in GNU/Linux
similar type of information may be obtained Remark statement, normally used within a
from various text files in /proc directory. batch file. An alternative way not to run a
specific statement in a batch file is creating a
path label that will never be used, ::.
rem > newfilename
Displays or sets a search path for executable In Unix, the # sign can be used to start a
files. comment.

pause ren

Suspends processing of a batch program and Renames a file. Unlike the move command, this
displays the message 'Press any key to continue. command cannot be used to rename
. .'. subdirectories, or rename files across drives.
ren filename newname
pcpark You can rename files in another directory by
using the PATH parameter:
Parks the hard disk heads in order to enable ren [path]|[filename] [newfilename]
safe shutdown; only used on early versions. An example could be:
pcpark ren c:\Windows filex.txt filey.txt
No Unix equivalent. On DOS with long filename support, care must
MS-DOS 3.2 (and possibly others) used the be taken when directories have spaces in their
command HHSET names like "Documents and Settings". In these
cases double-quotes are used to enclose them:
print ren c:\"Documents and Settings"\"All Users"\Desktop
filex.txt filey.txt
Mass renames can be accomplished by the use
of wildcards. For example, the following /F:space Allocates file space (in bytes) for file-sharing
command will change the extension of all files information.
in the current directory which currently have /L:locks Sets the number of files that can be locked at
the extension htm to html: one time.
ren *.htm *.html
In Unix, this functionality of a simple move is smartdrive
provided by the mv command, while batch
renames can be done using the rename Main article: SmartDrive
command.
sort
scandisk
A filter to sort lines in the input data stream and
Disk diagnostic utility. Scandisk was a send them to the output data stream.
replacement for the chkdsk utility, starting with sort < inputfilename > outputfilename
later versions of MS-DOS. Its primary Similar to the Unix command sort. Handles files
advantages over chkdsk is that it is more up to 64k. This sort is always case insensitive. [7]
reliable and has the ability to run a surface scan
which finds and marks bad clusters on the disk. subst
It also provided mouse point-and-click TUI,
allowing for interactive session to complement A utility to map a subdirectory to a drive letter.
command-line batch run. [3]

subst <d:> <path>


chkdsk had surface scan and bad cluster detection subst <d:> /D (Deletes the substitute drive)
functionality included, and was used again on Windows If SUBST e: c:\edrive were executed, a new
NT based operating systems. drive letter e: would be created, showing the
contents of c:\edrive. The opposite can be
Equivalent to the Unix command fsck. achieved via the join command.

set sys

Sets environmental variables. See Environment A utility to make a volume bootable. Sys
variable. rewrites the Volume Boot Code (the first sector
Since Windows 2000, it can even be used for of the partition that Sys is acting on) so that the
command line inputs by using Parameter /P code, when executed, will look for Io.sys. Sys
set /p choice=Type your text. also copies the core DOS system files, Io.sys,
echo You typed: "%choice%" Msdos.sys, and Command.com, to the volume.
Sys does NOT rewrite the Master Boot Record,
setver contrary to widely-held belief.

TSR designed to return a different value to the time and date


version of DOS that is running. This allows
programs that look for a specific version of DOS Display and set the time and date
to run under a different DOS. time
Setver appeared in version 4, and has been in date
every version of DOS, OS/2 and Windows NT When these commands are called from the
since. command line or a batch file, they will display
the time or date and wait for the user to type a
share new time or date and press RETURN. The
command 'time /t' will bypass asking the user to
Installs support for file sharing and locking reset the time.
capabilities. The Unix command date displays both the time
share [/F:space] [/L:locks] and date, but does not allow the normal users
to change either. Users with superuser will display
privileges may use date -s <new-date-time> to c:\util\test\test.exe
change the time and date. This command also displays the UNC
The Unix command time performs a different pathnames of mapped network or local CD
function. drives.
This command is an undocumented DOS
tree command. The help switch "/?" defines it as a
"Reserved command name". It is available in
Shows the directory tree of the current MS-DOS 5.00.
directory This command is similar to the Unix which
Syntax: command, which, given an executable found in
tree [options] [directory] $PATH, would give a full path and name. The C
Options: library function realpath performs this function.

 /F (Displays the names of the files in each The Microsoft Windows command processors do not
folder.) support this command.
 /A (Use ASCII instead of the extended
characters.) type
 /? (Shows the help)
Display a file. The more command is frequently
truename used in conjunction with this command, e.g.
type long-text-file | more.
truename type filename
or Equivalent to the Unix command cat.
truename drivename
or undelete
truename filename
or Restores file previously deleted with del. By
truename directory default all recoverable files in the working
If typed without a parameter then the current directory are restored. The options are used to
active drive pathname is displayed. change this behavior. if the MS-DOS mirror TSR
MS-DOS can find files and directories given their program is used, then deletion tracking files are
names, without full path information, if the created and can be used by undelete.
search object is on a path specified by the Syntax:
environment variable PATH. For example, if undelete [filespec] [/list|/all][/dos|/dt]
PATH includes C:\PROGRAMS, and file
MYPROG.EXE is on this directory, then if Options:
MYPROG is typed at the command prompt, the
command processor will execute  /list : lists the files that can be undeleted.
C:\PROGRAMS\MYPROG.EXE  /all : Recovers all deleted files without
the TRUENAME command will expand a name prompting. Uses a number sign for missing first
in an abbreviated form which the command character.
processor can recognise into its full form, and  /dos : Recover only MS-DOS aware files, ignore
display the result. It can see through SUBST and deletion tracking file.
JOIN to find the actual directory. In the above  /dt : Recover only deletion tracking file aware
example, files.
TRUENAME MYPROG
would display In Unix and Unix-like systems this differs from
C:\PROGRAMS\MYPROG.EXE filesystem to filesystem. People who use the
and for a substituted drive set up by ext2 filesystem can try the command e2undel.
subst d: c:\util\test
the command Ver
truename d:\test.exe
An internal DOS command, that reports the Copy entire directory trees.
DOS version presently running, and since MS-
DOS 5, whether DOS is loaded high. The Xcopy is a version of the copy command that can move
corresponding command to report the files and directories from one location to another.
Windows version is winver.
xcopy directory [destination-directory]
Options: DOS 5 and later Equivalent to the Unix command cp when used
with -r parameter.
 /r  : revision level, also shows whether DOS is
loaded high
 /?  : shows command line help.

Value returned:

 MS-DOS up to 6.22, typically derive the DOS


version from the DOS kernel. This may be
different from the string it prints when it starts.
 PC-DOS typically derive the version from an
internal string in command.com (so PC-DOS 6.1
command.com reports the version as 6.10,
although the kernel version is 6.00.)
 DR-DOS reports whatever value the
environment variable OSVER reports.
 OS/2 command.com reports an internal string,
with the OS/2 version. The underlying kernel
here is 5.00, but modified to report x0.xx
(where x.xx is the OS/2 version).
 Windows 9x command.com report a string from
inside command.com. The build version (e.g.
2222), is also derived from there.
 Windows NT command.com reports either the
32-bit processor string (4nt, cmd), or under
some loads, MS-DOS 5.00.500, (for all builds).
The underlying kernel reports 5.00 or 5.50
depending on the interrupt. MS-DOS 5.00
commands run unmodified on NT.
 The Winver command usually displays a
Windows dialog showing the version, with some
information derived from the shell. In windows
before Windows for workgroups 3.11, running
winver from DOS reported an embedded string
in winver.exe.

verify

Enables or disables the feature to determine if


files have been correctly written to disk.
If no parameter is provided, the command will
display the current setting.[8]
verify [on|off]

xcopy

You might also like