Click here to Skip to main content
11,494,964 members (36,388 online)
Rate this: bad
good
Please Sign up or sign in to vote.
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
Comments
Rohit Kumar Mumbai at 22-Mar-13 8:52am
   
Requirement is not clear, please elaborate.
ryanb31 at 22-Mar-13 9:00am
   
Look into hooks. They may be called something newer now but you need to create system level hooks.
ThePhantomUpvoter at 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. at 22-Mar-13 9:35am
   
Thanks, I will be more careful in future.
Volynsky Alex at 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
Volynsky Alex at 23-Mar-13 14:28pm
   
it also may be useful:
http://stackoverflow.com/questions/14801950/getqueuedcompletionstatusex-readdirectorychangesw

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

  Print Answers RSS
0 Dnyaneshwar@Pune 692
1 CHill60 318
2 Sascha Lefèvre 280
3 Sergey Alexandrovich Kryukov 245
4 Nakul Chaudhari 236
0 Sergey Alexandrovich Kryukov 10,307
1 OriginalGriff 8,821
2 Sascha Lefèvre 3,889
3 Maciej Los 3,412
4 Richard Deeming 2,560


Advertise | Privacy | Mobile
Web04 | 2.8.150520.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