I would like to know how to program a file or folder to be hidden but at the same time prevent the file or folder to be visible with the Show hidden files and folders option enabled.
Any suggestions or comments would be appreciated
Victor
I would like to know how to program a file or folder to be hidden but at the same time prevent the file or folder to be visible with the Show hidden files and folders option enabled.
Any suggestions or comments would be appreciated
Victor
Last edited by victor43; 02-05-2010 at 04:04 PM.
Reason?
Woop?
I am facinated by stealth programs like keyloggers on how they do it. So I would like to write an application that can detect these hidden files first. I know there are other methods used by spyware to hide themselves so this is just a starting point for now.
Hope that answers your questions.
Victor
Operating system?
I copied it from the last program in which I passed a parameter, which would have been pre-1989 I guess. - esbo
Most peoples' settings will hide "system" files even when they are set to show "hidden" files and folders. So the simplest thing you could do would be to set the file attributes to system.
You could do this with something like system("attrib +H +S <file>") or using the win32 api.
I copied it from the last program in which I passed a parameter, which would have been pre-1989 I guess. - esbo