The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Windows explorer question by Egaeus2005-02-08 05:47:31
  Brute force solution... by jdelphiki 2005-02-08 06:53:51
Open a DOS prompt and use the "dir" command to create a list of all files, one list for the CD and one list for the other directory structure. The list will be created by redirecting the output of your "dir" commands to output files.

Options for the "dir" command can be found by typing "dir /?" and you'll need to use a few to make the lists come out properly. (If you can't get the help options, let me know and I'll paste them out here).

Do you need to compare only files, or are you checking folders as well? Assuming you're only interested in the files, the command should be something like:

dir/s /os /a-d > outputfilename.txt

where:

"/s" searches through all subdirectories
"/os" sorts the output by file size ("/o-s" reverses sort order)
"/a-d" specifies to select only files and not directories

the " > outputfilename.txt" redirects the output from the command into a text file named: "outputfilename.txt"

Execute this command from the root folder for both the CD and the other directory structure, using a different filename for each one. For the CD, you'll have to specify the path that you want the "outputfilename.txt" to be written to since you can't, of course, write to the CD.

Now that you have two lists, you can use your compare utility to compare the two lists, but it will still complain about the file names being different, as well as the other directory information junk it puts in there.

If you actually don't need to look at the file sizes, you can add the "/b" option to your "dir" command (dir/s /os /a-d /b > outputfilename.txt) to show only the file names. The sort options will still work, but you won't see any of the other extraneous folder junk.

This is a bit of an ugly solution, but it might help you out.

Good luck!

Bean
[ Reply ]

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)