Tom said:
MS just released a patch for one of last week's patches that can corrupt
compressed folders on Win2k. I installed the patch for the patch, but what
if I wanted to check my compressed folders and I couldn't remember which
ones were compressed? Color coding won't help unless you open the parent
folder. How can you search a volume for compressed folders?
I'm sorry about back to back messages but just read the first message
in this thread and figured I'd take a shot at it.
1) From Windows Explorer you can do a search for files, click on the
"Type" column header, scroll down to the "File Folder" type,
and look for folders that are color coded blue. It's a manual process
and thus error prone.
2) Jerold Schulman mentioned using ls.exe (tip # 10830 on
www.jsifaq.com). I just tried this - it's close but you can't
use it to scan for compressed folders as the first column of "ls
-l" is a hyphen if it's a normal file, "c" for a compressed
file, and "d" for a directory/folder. There is no character or
color coding to indicate compressed folders. You can use ls.exe to get
a list of compressed files though.
I could not find an obvious utility to just list the compressed folders
and so I took the code I already had for scandf and modified it into a
new utility, ListCompressed, which will list just those files or
folders that are compressed (or are not compressed if you want). The
utility is available at
http://marc.kupper.googlepages.com/listcompressed.
Please note that the issue that started this thread, KB920958 causing
some compressed files to get corrupted, does not seem to affect
compressed folders/directories themselves. I'm not sure if that's
because people have been lucky or if whatever KB920958 broke does not
affect the folders/directories themselves.
I wrote ListCompressed mainly as I've been kicking around some ideas
about directory and file searching/listing and ListCompressed will
evenually morph into something else.
Marc