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
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.
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.
Summary: This should do it, elmoso: for %%F in (C:\DOCUME~1\ALLUSE~1\DESKTOP\3Melk.log) do echo %%~zF bytes It will display the file size in bytes. You may do this to display it in KB: for %%F in (C:\DOCUME~1\...
Summary: I am trying to find out what DOS version is installed in an old computer I want to restore. It's a Laser 286S with Geoworks. Since that was my first MS-DOS system, I am quite fond of it and would like...