h a l f b a k e r yProfessional croissant on closed course. Do not attempt.
add, search, annotate, link, view, overview, recent, by name, random
news, help, about, links, report a problem
browse anonymously,
or get an account
and write.
register,
|
|
|
Please log in.
Before you can vote, you need to register.
Please log in or create an account.
|
Sometimes you might download a ZIP file, then forget about it,
and the
next time you try to open it up it prompts you for a password,
which
you've forgotten. Rather than trying to decompress every single ZIP
(or
RAR, XAR, etc.) file that you download to see if it works without
passwords,
the File browser (usually, Explorer or Finder) will
automatically analyze the file and show a little picture of a key
over
the ZIP archive file's graphical icon, proactively alerting the user.
OSes
nowadays analyze files in the background for search indexing
purposes
already anyway.
MSDN: Creating Icon Handlers
http://msdn.microso...b776857(VS.85).aspx Microsoft's documentation on how to do this [krelnik, Dec 13 2008]
[link]
|
|
Windows doesn't do any analysis beyond checking the file extension. This would be fairly easy to implement on other platforms, though. |
|
|
Spacecoyote is only partially correct. *By default* Windows only looks at the extension. But the Windows shell supports an extension called an 'icon handler' that can be used to build precisely what you describe here. |
|
|
Good plan. I think I may keep that link to MSDN for later - I can already think of a few ways I might use that... |
|
| |