• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Event processing in Action: Catch executable file events

 
Tariq Rafique
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Opher and peter,

Is there anyway to catch windows executable file start/stop events in java. I am working on a data logging app. I need to catch start and stop event of a window executable and log it. Then monitoring files in a particular folder being updated by executable and learn which file is being updated/deleted/created and log it too.

Guide me with your suggestions.
 
Opher Etzion
author
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tariq.

To be honest, I don't know the answer to your question.
The book is about how event are processed; events can get from many sources, and the way the event is created/observed/instrumented is particular to the specific source, so try to address your question to Windows experts.

cheers,

Opher
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For something like that you'd be better off writing in native code from the beginning, as you'll need to hook into OS events.
 
Rob Spoor
Sheriff
Pie
Posts: 20546
57
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know that the last executed programs are stored in the Windows registry, so there probably is an event for starting programs. I honestly have no idea if there is an event for ending programs.
 
Tariq Rafique
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to all here for valuable suggestions.

Like Opher said
the way the event is created/observed/instrumented is particular to the specific source


Is there any best practices to handle events to a particular type of source in java (e.g. SWING, Web etc.).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic