Click here to Skip to main content
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 OriginalGriff 200
1 Kamal Rocks 184
2 PIEBALDconsult 150
3 BillWoodruff 148
4 Jochen Arndt 135
0 OriginalGriff 5,695
1 DamithSL 4,506
2 Maciej Los 4,007
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,190


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 22 Mar 2013
Copyright © CodeProject, 1999-2014
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