Home > Commands N-Z > Commands V

VERIFY


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

Directs the operating system to verify that your files are written correctly to a disk and displays the status of verification. For example, you can use this command to make sure data is not written to a bad sector. You can use this command either at the command prompt or in your AUTOEXEC.BAT file.

Windows XP does not use this command. It is accepted only for compatibility with MS-DOS files.


Syntax

VERIFY [ON | OFF]

Display the current setting:

VERIFY


Parameters
ON | ( OFF v2.0 Win95)
Specifies whether should verify (ON) or not verify (OFF) that write operations are done correctly, via CRC calculation.

Switches

none.


Related

For information about checking a disk for bad sectors, see the CHKDSK command.
For information about verifying files as you copy them, see the /V switch in the COPY, DEFRAG, DISKCOPY, REPLACE, or XCOPY commands.
MOVE - Move files from one folder to another.
Equivalent Linux BASH commands:
cksum - Print CRC checksum and byte counts.


Notes
Default setting

By default the CMD shell has verify OFF. Windows Explorer will always copy with verify ON.


Displaying the current status of the ON|OFF switch

Use the VERIFY command without a switch to find out whether verification is turned ON.


How VERIFY affects performance

Turning VERIFY ON slows down all disk write operations. Copying files can be up to twice as fast with VERIFY OFF.


Examples

none.


Errorlevels
Availability
Internal
DOS
v2.0 v2.01 v2.05 v2.10 v2.11 v2.11R v2.12 v2.2 v2.25 v3.0 v3.20 v3.05 v3.1 v3.21 v3.25 v3.30 v3.3A v3.3R v3.3T v3.31 v3.40 v4.0 v4.01 v4.01A v5.0 v5.0A v5.00.02 v5.001A v5.01 v5.02 v6.0 v6.10 v6.2 v6.21 v6.22 v6.23 v7.00 v7.0R1 v7.10 v8.00
Windows
Win95 Win98 WinME
Windows NT
none