C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 02-05-2010, 03:56 PM   #1
Registered User
 
Join Date: Feb 2010
Posts: 3
How to programmatically hide a file or folder

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.
victor43 is offline   Reply With Quote
Old 02-05-2010, 04:04 PM   #2
Sweet
 
Join Date: Aug 2002
Location: Tucson, Arizona
Posts: 1,758
Reason?
__________________
Woop?
prog-bman is offline   Reply With Quote
Old 02-05-2010, 04:07 PM   #3
Registered User
 
Join Date: Feb 2010
Posts: 3
Quote:
Originally Posted by prog-bman View Post
Reason?
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
victor43 is offline   Reply With Quote
Old 02-05-2010, 04:11 PM   #4
Registered User
 
NeonBlack's Avatar
 
Join Date: Nov 2007
Posts: 352
Operating system?
__________________
I copied it from the last program in which I passed a parameter, which would have been pre-1989 I guess. - esbo
NeonBlack is offline   Reply With Quote
Old 02-05-2010, 04:14 PM   #5
Registered User
 
Join Date: Feb 2010
Posts: 3
Quote:
Originally Posted by NeonBlack View Post
Operating system?
Sorry forgot to add that I'm using Windows XP SP3. Victor.
victor43 is offline   Reply With Quote
Old 02-06-2010, 12:56 AM   #6
Registered User
 
NeonBlack's Avatar
 
Join Date: Nov 2007
Posts: 352
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
NeonBlack is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Encryption program zeiffelz C Programming 1 06-15-2005 03:39 AM
archive format Nor A Brief History of Cprogramming.com 0 08-05-2003 07:01 PM
Making a LIB file from a DEF file for a DLL JMPACS C++ Programming 0 08-02-2003 08:19 PM
Hmm....help me take a look at this: File Encryptor heljy C Programming 3 03-23-2002 10:57 AM
Need a suggestion on a school project.. Screwz Luse C Programming 5 11-27-2001 02:58 AM


All times are GMT -6. The time now is 12:05 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22