|
-
May 24th, 2012, 05:41 AM
#1
detect application launch & file change
i am totally new to this and i apologize in advance for sounding stupid and sorry if this is not the right place to ask..
(OS Windows)how do i detect when a file has been changed ? do i need to monitor this file and check the last modified date&time? (how do i do this?)
furthermore how do i detect a certain application launch?
... thanxxx ...
-
May 24th, 2012, 05:54 AM
#2
Re: detect application launch & file change
Detecting application, you can do via named objects like mutex and all.
Regarding file notification, please go through below link:
http://stackoverflow.com/questions/9...ification-in-c
cheers!!!
Vatsa
www.objectiveprogramming.com
-
May 24th, 2012, 07:37 PM
#3
Re: detect application launch & file change
A daemon is usually the best way to detect things like that. They are usually registered as a service and start on startup.
-
May 25th, 2012, 03:27 AM
#4
Re: detect application launch & file change
 Originally Posted by snehula
... (OS Windows)how do i detect when a file has been changed ?
You could try:
FindFirstChangeNotification / FindFirstChangeNotification / FindCloseChangeNotification
or
ReadDirectoryChangesW
Victor Nijegorodov
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|