Copy with Verify?

  • Thread starter Thread starter Talal Itani
  • Start date Start date
T

Talal Itani

Under DOS, xcopy has a verify switch. When I copy in XP, is there a verify
option? Thanks.

T.I.
 
On 5/4/2007 11:37 AM On a whim, Talal Itani pounded out on the keyboard
Under DOS, xcopy has a verify switch. When I copy in XP, is there a verify
option? Thanks.

T.I.

Hi Talal,

Yes, by using xcopy in a command prompt window. ;-)

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


--
Terry

***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
 
/v Verifies each file as it is written to the destination file to make sure
that the destination files are identical to the source files.

Xcopy HELP
Paste the following line into Start | Run and click OK...

hh ntcmds.chm::/xcopy.htm

Also type: xcopy /? in a command prompt.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Wesley Vogel said:
/v Verifies each file as it is written to the destination file to make
sure that the destination files are identical to the source files.

Xcopy HELP
Paste the following line into Start | Run and click OK...

hh ntcmds.chm::/xcopy.htm

Also type: xcopy /? in a command prompt.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In

I means to ask, when I use Windows Explorer to copy, is verify implemented?
 
On 5/4/2007 3:05 PM On a whim, Talal Itani pounded out on the keyboard
I means to ask, when I use Windows Explorer to copy, is verify implemented?

I believe I answered you. Yes.

--
Terry

***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
 
I was under the impression that "verify" just checks that the new file is
readable, not that it actually matches the source.
 
I was under the impression that "verify" just checks that the new file is
readable, not that it actually matches the source.

Then you had the wrong impression.

/v Verifies each file as it is written to the destination file to make sure
that the destination files are identical to the source files.

Xcopy HELP
Paste the following line into Start | Run and click OK...

hh ntcmds.chm::/xcopy.htm

Also type: xcopy /? in a command prompt.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Ok; but what about the info from microsoft?
Does the following only apply to the old real versions of DOS and not to the
current DOS emulators on Windows XP? From:
http://support.microsoft.com/kb/126457

"VERIFY ON, COPY /V, XCOPY /V Commands Do Not Compare Data
Article ID : 126457, Last Review : May 6, 2003, Revision : 2.0
Some versions of the MS-DOS "User's Guide" and online Help indicate that the
/V (verify) switch for the COPY and XCOPY commands actually compares the
source and destination files to determine whether they are identical. This is
not correct. The /V switch verifies that the destination file, once written,
can be read. No comparison of the files occurs.
This information also applies to the VERIFY ON command.
When you use the VERIFY ON command, or the /V switch with the COPY or XCOPY
command, the MS-DOS file system uses the block device driver command code
function 09H, Write with Verify. This verification process consists of
confirming that the data just written can be read (for example, that the data
was not written to a bad sector on the disk). No comparison of the source and
destination data occurs.
To compare the source and destination files, use the MS-DOS FC (file
compare) command after you use the COPY or XCOPY command.
REFERENCES
For more information about the VERIFY, COPY, XCOPY, or FC command, see your
MS-DOS "User's Guide," or use the online Help in MS-DOS versions 5.0 and
later."

I honestly do not know. I am asking, not telling.
 
rmace said:
Ok; but what about the info from microsoft?
Does the following only apply to the old real versions of DOS and not
to the current DOS emulators on Windows XP? From:
http://support.microsoft.com/kb/126457

Your information (KB) is correct. I don't know what XP's version of copy
and xcopy do but that's true of the old DOS operating sytems up thru win98.
I hesitate to correct Wesley because he's seldom wrong about anything,
but it's still my impression that they operate that same way under XP, but
.... I only base that conclusion on the length of time it takes to copy or
copy/verify. An actual full data verification will take about the same
length of time to accomplish as the copy operation itself. Empirical and
admittedly very rudimentary tests I just tried seem to tell me that there is
NO data verification as far as comparing the destination data to the source.
Copying a 40 Meg file results in almost no noticeable change in copy time
with or without the data verification switch.

So perhaps what I should be doing is aking Wesley: Please comment/clarify
the information because I know the KB article is correct for the old DOS
versions. My experience doesn't seem to bear out those comments Wesley made
however.
Perhaps the confusion is between using the Command Prompt to issue actual
copy/xcopy commands vs. the Windows method of copy? Or ... ?

Pop`
 
XP's Xcopy.exe and DOS Xcopy.exe are similar, but they are not the exact
same. For one thing, DOS Xcopy does not recognize the /g switch (Creates
decrypted destination files). Which if you think about it, you can only
encrypt files and folders on an NTFS file system. MS-DOS won't even install
on NTFS.

What I copied and pasted was from XP's Command-line reference
%windir%\hh.exe ms-its:c:\Windows\Help\ntcmds.chm::/ntcmds.htm

This link is the same as what's in XP's Command-line reference...
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/xcopy.mspx?mfr=true

http://support.microsoft.com/kb/126457 APPLIES TO
* Microsoft MS-DOS 3.1
* Microsoft MS-DOS 3.2 Standard Edition
* Microsoft MS-DOS 3.21 Standard Edition
* Microsoft MS-DOS 3.3 Standard Edition
* Microsoft MS-DOS 3.3a
* Microsoft MS-DOS 4.0 Standard Edition
* Microsoft MS-DOS 4.01 Standard Edition
* Microsoft MS-DOS 5.0 Standard Edition
* Microsoft MS-DOS 5.0a
* Microsoft MS-DOS 6.0 Standard Edition
* Microsoft MS-DOS 6.2 Standard Edition
* Microsoft MS-DOS 6.21 Standard Edition
* Microsoft MS-DOS 6.22 Standard Edition

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Thanks for the confidence, Pop. But I am quite often wrong. ;-)

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Back
Top