Click here to Skip to main content
11,922,905 members (48,493 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# C#4.0 VS2010
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 22-Mar-13 3:49am
Rohit Kumar Mumbai 22-Mar-13 8:52am
Requirement is not clear, please elaborate.
ryanb31 22-Mar-13 9:00am
Look into hooks. They may be called something newer now but you need to create system level hooks.
ThePhantomUpvoter 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
ReadDirectoryChangesW function
Volynsky Alex 23-Mar-13 14:28pm
it also may be useful:

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web04 | 2.8.151125.1 | Last Updated 22 Mar 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100