How to hide a folder?

Just starting out? Need help? Post your questions and find answers here.
Thorium
Addict
Addict
Posts: 1305
Joined: Sat Aug 15, 2009 6:59 pm

Re: How to hide a folder?

Post by Thorium »

I remember a nice way of hiding files on DOS and Win9x. But with NTFS partitions it's not that easy. The trick was very common in the DOS era: Basicly you remove the file(s) from the file table of the hard disk and flag the clusters that the files uses as bad or damaged. So the OS will not use this clusters anymore. Then you have to save the information of the file (filename, path, wich clusters it's on) to a database or datafile or whatever. Because you only have to manipulate the file table and set some flags it was very fast. However NTFS is another story.
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: How to hide a folder?

Post by Rook Zimbabwe »

I had thought that if a file name started with ! or $ it was invisible? Automatically???
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Re: How to hide a folder?

Post by SFSxOI »

Rook Zimbabwe wrote:I had thought that if a file name started with ! or $ it was invisible? Automatically???
Nah...take a clue from the Sony root kit fiasco...ie.... $sys$_somenamehere
The advantage of a 64 bit operating system over a 32 bit operating system comes down to only being twice the headache.
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: How to hide a folder?

Post by Rook Zimbabwe »

I wonder if the $Sys$_NAMEHERE would even work on Vista or 7??? :mrgreen:
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: How to hide a folder?

Post by PB »

> I wonder if the $Sys$_NAMEHERE would even work on Vista or 7???

It doesn't work here on XP, that's for sure.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Post Reply