Computing.Net > Forums > Disk Operating System > Verifying file size

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Verifying file size

Reply to Message Icon

Name: Lightspeed
Date: February 13, 2001 at 16:45:27 Pacific
Comment:


Is there a command that will let me verify
the size of one file against another. I use 2 HD (soon 3) and i want to create a batch file that will check one directory against another for files of the same size (presumably the same), so that i can detect and weed out double entries.

Thanks for your help.



Sponsored Link
Ads by Google

Response Number 1
Name: DrScriptt (Grant)
Date: February 14, 2001 at 20:30:28 Pacific
Reply:

You mean that you want to "file compair" (fc) and act on the result? Here is a quick dirty way to check every file in a directory, no sub directories though.
FOR %F IN (*.*) DO IF EXIST [other dir]\%F FC %F [orther dir]\%F
and act on the errorlevel, or dump FCs output to a file and do a find on it for what you are looking for.
Hope that helps, if not email me drscriptt@yahoo.com and I'll try to give you more.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Verifying file size

File Size in DOS Batch file www.computing.net/answers/dos/file-size-in-dos-batch-file/3105.html

file size www.computing.net/answers/dos/file-size/13178.html

Identifying DOS from file size? www.computing.net/answers/dos/identifying-dos-from-file-size/16009.html