Click here to Skip to main content
15,913,304 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please, Help me! I wanna make an app which reacts when you are opening any folder, and does something, for example, opens my textfile or more opens my program which I have made. Thanks in advance.
Posted
Comments
Rohit Kumar Mumbai 22-Mar-13 8:52am    
Requirement is not clear, please elaborate.
ZurdoDev 22-Mar-13 9:00am    
Look into hooks. They may be called something newer now but you need to create system level hooks.
[no name] 22-Mar-13 9:04am    
First this to do is come up with a specific question to a specific problem. "I wanna" is not a question or a description of a problem.
Second. Rethink what it is that you think you want to do. What you are describing would be seriously annoying to users. Every time you open a folder, a text file opens up? Really?
Misha_K. 22-Mar-13 9:35am    
Thanks, I will be more careful in future.
Volynsky Alex 23-Mar-13 14:24pm    
To catch file system events you can read following articles:
SetWindowsHookEx function
http://msdn.microsoft.com/en-us/library/windows/desktop/ms644990%28v=vs.85%29.aspx
ReadDirectoryChangesW function
http://msdn.microsoft.com/en-us/library/windows/desktop/aa365465%28v=vs.85%29.aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900