CMD Simulator
System Informationverify

VERIFY Command Guide - File Write Verification in Windows CMD

Learn how to use the VERIFY command to enable or disable write verification in Windows Command Prompt. Ensures copied files are written correctly to disk.

Rojan Acharya··Updated Mar 23, 2026
Share

The verify command is a Windows Command Prompt utility that turns automatic write verification on or off. When verify is on, CMD checks that files written to disk (e.g., by copy or xcopy) were recorded correctly by reading them back and comparing. Use verify on to enable verification for critical copies, or verify off (default) for faster operations—providing a simple way to ensure data integrity during file operations.

Whether you're copying critical configuration files, backing up important data, deploying files to removable media, or running copy operations where integrity matters more than speed, the verify command offers a built-in safety check. System administrators use verify when copying to unreliable media, during backup validation, or when maximum assurance is needed.

This comprehensive guide covers verify syntax, how it affects copy and xcopy, when to use it, troubleshooting tips, related commands, and frequently asked questions. By the end, you'll know when and how to enable verification for your file operations.

What Is the Verify Command?

The verify command is a CMD toggle that controls whether the command interpreter verifies file writes. Key points:

  • verify on – After copy/xcopy writes a file, CMD reads it back and compares to ensure it was written correctly
  • verify off – No verification (default). Writes are assumed correct. Faster.
  • verify (no args) – Displays current setting (VERIFY is on or VERIFY is off)

When verification is on, copy and xcopy operations take longer but provide an extra integrity check. Useful for critical data, floppy/removable media, or when hardware reliability is uncertain. Available in all Windows versions. Affects only CMD copy and xcopy; third-party tools have their own verification options.

Verify Command Syntax

VERIFY [ON | OFF]

Parameters

ParameterDescription
(none)Displays current verify setting
ONEnables write verification. Copy/xcopy verify each write.
OFFDisables write verification (default). No read-back check.

Case-insensitive: on, On, ON all work.

How Verify Works

When verify is on:

  1. You run copy file.txt destination\
  2. CMD copies the file to the destination
  3. CMD reads the copied file back from disk
  4. CMD compares read data with original
  5. If mismatch: error reported. If match: success.

When verify is off (default):

  • CMD writes the file and assumes success. No read-back. Faster.

Verification adds one full read of each copied file. On slow media (USB 1.x, network, some HDDs) this can noticeably slow operations. On fast SSDs the impact is smaller.

Examples

Check Current Setting

Display whether verification is on or off:

verify

Output: VERIFY is on. or VERIFY is off. Use when you want to confirm state before critical copies.

Enable Verification

Turn on write verification for subsequent copies:

verify on

All copy and xcopy commands in this CMD session will verify writes. Use before critical backup or deployment.

Disable Verification

Turn off verification (default state):

verify off

Reverts to default behavior. Use after critical copies when you want faster operations again.

Typical Workflow

verify on
copy C:\Critical\config.ini D:\Backup\
copy C:\Critical\database.dat D:\Backup\
verify off

Enable before critical copies, run copies, disable afterward. Keeps verification only where needed.

Verification with Xcopy

verify on
xcopy C:\Source\*.* D:\Dest\ /E /V

Both verify and xcopy /V provide checks. verify affects CMD's behavior; xcopy /V is xcopy's own verification. Using both adds redundancy for maximum assurance.

Common Use Cases

  1. Critical configuration deployment – When copying config files to servers or workstations, enable verify to ensure no silent write errors corrupt deployment.

  2. Backup to removable media – USB drives and SD cards can have bad sectors. Verify on adds a read-back check to catch corruption during backup.

  3. Copy to network shares – Network issues can cause partial writes. Verify helps ensure complete, correct transfer.

  4. Regulatory or compliance – Some procedures require verification of copied data. Use verify on to meet documentation requirements.

  5. After disk errors – If a disk recently had errors, use verify when copying data off it to ensure reads during copy are valid.

  6. Batch copy of important files – In scripts that copy many important files, enable verify at the start to protect all copies in the batch.

  7. Distributing installers – When copying setup files to distribution shares, verify reduces risk of corrupted installers.

  8. Recovery operations – When restoring from backup or copying critical files during disaster recovery, verification adds confidence.

  9. Legacy floppy operations – On systems still using floppies (rare), verify was commonly used due to floppy unreliability.

  10. Scripted deployment – Add verify on at top of deployment script when integrity matters more than speed.

  11. Development builds – When copying build outputs to test or staging, verify can catch filesystem or disk issues.

  12. Audit trails – Document that verify was enabled during critical copy operations for audit compliance.

Tips and Best Practices

  1. Default is off – CMD starts with verify off. Enable explicitly when needed; no performance cost when off.

  2. Session scope – Verify setting applies only to current CMD session. New CMD windows start with verify off.

  3. Combine with xcopy /V – xcopy has its own /V (verify) switch. Using both verify on and xcopy /V provides double verification for maximum assurance.

  4. Expect slower copies – Verification doubles read I/O for each file. On large copies, expect noticeable slowdown. Use only when worth the time.

  5. Script it – In batch files: verify on at start of critical section, verify off at end. Ensures verification only where needed.

  6. Check before critical copy – Run verify before important copy to confirm state. Avoid assuming it's on.

  7. Document in procedures – When writing admin procedures, specify "run verify on before copying" for critical steps.

  8. Removable media – Most useful for USB, SD, network. Less critical for internal SSD with no known issues.

  9. Don't overuse – For routine copies (e.g., temp files, logs), leave verify off. Use only when integrity is important.

  10. Copy vs xcopy – Both respect verify. Choose copy or xcopy based on need (single file vs recursive); verify affects both.

  11. No effect on robocopy – Robocopy has its own verification (/V in some contexts). Verify command does not affect robocopy.

  12. Third-party tools – Verify affects only CMD's copy and xcopy. 7-Zip, robocopy, etc. ignore it.

Troubleshooting Common Issues

Copies Seem Very Slow

Problem: Copy operations take much longer than expected.

Cause: Verify is on. Each copy is followed by a full read and compare.

Solution: Run verify off to disable. Use verify only when you need integrity checks. For large batches, consider leaving it off unless copying critical data.

Prevention: Turn verify off after completing critical copies. Don't leave it on indefinitely.

Verify Doesn't Seem to Change Behavior

Problem: Enabling verify doesn't appear to affect copies.

Cause: You may be using a tool that doesn't respect verify (e.g., robocopy, PowerShell Copy-Item, 7-Zip). Verify affects only CMD's copy and xcopy.

Solution: Use CMD's copy or xcopy when you need verify. Or use the tool's own verification (e.g., robocopy options, xcopy /V).

Prevention: Verify only works with CMD copy and xcopy. Use those when you need it.

Verification Error Reported

Problem: Copy reports verification error or file comparison failure.

Cause: Data read back from disk doesn't match what was written. Could indicate bad sector, failing drive, cable issue, or filesystem corruption.

Solution: Run chkdsk on the destination drive. Try different destination (another folder or drive). Copy again with verify. If persistent, consider hardware issues. Restore from backup if available.

Prevention: Monitor disk health. Replace failing storage. Use verify for critical copies to catch issues early.

Verify Setting Not Persisting

Problem: Verify resets to off after closing CMD.

Cause: Verify is session-only. It does not persist across CMD sessions.

Solution: Add verify on to your batch script or run it at start of each CMD session when needed. Use Autorun or a startup script to enable automatically.

Prevention: Include verify on in scripts that require it. Don't rely on it being set from a previous session.

"VERIFY" Typed Incorrectly

Problem: Command not recognized or wrong behavior.

Cause: Typo. "verify" not "verfiy" or "veryfy".

Solution: Type verify exactly. Check spelling.

Prevention: Use Tab completion. Create doskey macro: doskey v=verify.

Related Commands

copy – File Copy

copy copies files. When verify is on, copy verifies each written file by reading it back. Use copy with verify on for single-file or simple multi-file copies where integrity matters.

When to use verify: Enable verify before copy when copying critical files.

xcopy – Extended Copy

xcopy copies files and directories. Respects verify setting. Also has /V switch for its own verification. Use both for maximum assurance on recursive copies.

When to use verify: verify on plus xcopy /V for critical recursive copies.

chkdsk – Check Disk

chkdsk checks and repairs filesystem and disk errors. Run chkdsk if verify reports errors—may indicate disk problems. Verify catches write issues; chkdsk finds filesystem and bad sector issues.

When to use: After verify errors, or routinely to check disk health.

fc – File Compare

fc compares two files. Use fc after copy to manually verify: copy a b then fc a b. verify automates this for copy/xcopy; fc is for ad-hoc comparison.

When to use: Manual verification, or when not using copy/xcopy.

Frequently Asked Questions

What does the verify command do?

The verify command turns CMD's write verification on or off. When on, copy and xcopy read back each written file and compare it to the source to ensure it was written correctly. When off (default), no verification is performed.

Should I leave verify on?

Generally no. Verify slows copy operations. Use it only when copying critical data where integrity matters. Turn it off afterward for normal use.

Does verify work with robocopy?

No. Verify affects only CMD's copy and xcopy. Robocopy has its own verification mechanisms. Use robocopy's options for verification when using robocopy.

Does verify work with PowerShell Copy-Item?

No. Verify is a CMD setting. PowerShell's Copy-Item does not use it. Use CMD copy/xcopy when you need verify, or use other tools' verification features.

How do I enable verify?

Run verify on. It takes effect immediately for the current CMD session. All subsequent copy and xcopy commands will verify writes until you run verify off.

Does verify make copies slower?

Yes. Verification requires reading each copied file back from disk, roughly doubling I/O per file. Expect noticeable slowdown on large copies. Use only when the trade-off is acceptable.

Does xcopy /V do the same as verify on?

Similar but not identical. xcopy /V tells xcopy to verify its own writes. verify on tells CMD to have copy and xcopy verify. Using both adds redundancy. xcopy /V works even when verify is off.

Will verify catch all copy errors?

It catches errors where the written data doesn't match the source (e.g., bad sectors, transient hardware issues). It won't catch logical errors (wrong file, wrong path) or issues before the write (corrupt source).

Is verify on by default?

No. Default is verify off. You must enable it explicitly.

How do I check if verify is on?

Run verify with no arguments. Output is either "VERIFY is on." or "VERIFY is off."

Quick Reference Card

CommandPurposeExample
verifyDisplay current settingCheck if on or off
verify onEnable verificationUse before critical copies
verify offDisable verificationDefault; use after critical copies

Summary

The verify command controls whether CMD verifies file writes during copy and xcopy. Use verify on before critical copies to ensure data integrity; use verify off (default) for faster operations. Verification adds a read-back and compare step, slowing copies but catching write errors. Affects only CMD copy and xcopy—robocopy and other tools have their own options. Enable verify when copying critical data to removable media, network shares, or when maximum assurance is needed.

Practice the verify command in our Windows Command Simulator. Browse the Commands Reference for all Windows CMD utilities. Explore copy and xcopy for file operations that work with verify.