Discussion:
Hide a directory
(too old to reply)
Boogie El Aceitoso
2003-12-05 11:00:17 UTC
Permalink
Hi,

What's the best way to have a directory as hidden as possible in ntfs and
FAT32?

Somethingas the 'System volume information' directory....

TIA
Nick Ryan
2003-12-05 18:46:46 UTC
Permalink
Mark it with the hidden flag? The next step up is a pretty big leap;
you'll need a filesystem filter driver to filter directory queries
targeted to the parent directory of the directory you want to hide, and
then modify the results. Extremely hard to get right (if you really want
to do this search the ntfsd archives at www.osronline.com).
Post by Boogie El Aceitoso
Hi,
What's the best way to have a directory as hidden as possible in ntfs and
FAT32?
Somethingas the 'System volume information' directory....
TIA
--
Nick Ryan (MVP for DDK)
Boogie El Aceitoso
2003-12-06 09:17:58 UTC
Permalink
Post by Nick Ryan
Mark it with the hidden flag? The next step up is a pretty big leap;
you'll need a filesystem filter driver to filter directory queries
targeted to the parent directory of the directory you want to hide, and
then modify the results. Extremely hard to get right (if you really want
to do this search the ntfsd archives at www.osronline.com).
Would this approach also work with fat32?
Maxim S. Shatskih
2003-12-06 12:01:22 UTC
Permalink
Post by Boogie El Aceitoso
Post by Nick Ryan
Mark it with the hidden flag? The next step up is a pretty big leap;
you'll need a filesystem filter driver to filter directory queries
targeted to the parent directory of the directory you want to hide, and
then modify the results. Extremely hard to get right (if you really want
to do this search the ntfsd archives at www.osronline.com).
Would this approach also work with fat32?
Yes, and with any possible filesystem.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
***@storagecraft.com
http://www.storagecraft.com
Boogie El Aceitoso
2003-12-06 09:20:49 UTC
Permalink
Post by Nick Ryan
Mark it with the hidden flag? The next step up is a pretty big leap;
you'll need a filesystem filter driver to filter directory queries
targeted to the parent directory of the directory you want to hide, and
then modify the results. Extremely hard to get right (if you really want
to do this search the ntfsd archives at www.osronline.com).
Aren't there any libraries or components for this, or do you have to start
from scratch?

Is it possible to override this filter? If yes, how?
Tim Robinson
2003-12-05 23:56:23 UTC
Permalink
In NTFS: Apply the appropriate access control entries to the directory.

In FAT: Apply the Hidden and/or System attributes and hope that applications
obey them, and that the user doesn't remove them with the ATTRIB command.
FAT doesn't support security.
--
Tim Robinson (MVP, Windows SDK)
http://www.themobius.co.uk/
Post by Boogie El Aceitoso
Hi,
What's the best way to have a directory as hidden as possible in ntfs and
FAT32?
Somethingas the 'System volume information' directory....
TIA
Loading...