Sign in to follow this  
Followers 0
joseLB

file delete detection

7 posts in this topic

Hi

Anyone can help me on how to intercept any file deletion operation on an HD?

I need to log any files deleted in a specific HD. I think this is something like antivírus intercepting writes, reads, etc.

This could be done thru na API?

At end, an AU3 script as a service or resident module that could be activated always a file deletion occurs? I´m completely lost on how to detect this!

Thanks in advance

Jose

Share this post


Link to post
Share on other sites

you will need to use a driver to do something like that.

There's a way to have your script be informed that a file was deleted using WMI, but not when it's about to be deleted so that you can manipulate the activity.

Itt's a little more complicated than just writing up a script.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

. Edited by joseLB

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

There's a way to have your script be informed that a file was deleted using WMI...

Thanks FlutterShy

In fact I just need to know that a file was deleted to log it; No need to manipulate activity. So, WMI (I´m new to WMI) is a solution?

More specifically, what do you think I could do?

Edited by joseLB

Share this post


Link to post
Share on other sites

Hi, after some goggle search, I found: Detecting File Changes with FileSystemWatcher

http://www.blackwasp.co.uk/FileSystemWatcher.aspx

http://www.blackwasp.co.uk/FileSystemWatcher_2.aspx

the problem is that I´m not very familiar on how to call the system functions as exposed in http://www.blackwasp.co.uk/FileSystemWatcher_2.aspx

Could someone help me on how to call these functions? I think it´s with ObjCreae, but has no idea on how to do it.

Thanks in advance

Jose

Share this post


Link to post
Share on other sites

joseLB,

seangriffin's FileSystemMonitor UDF will monitor a disk for you - I have found it very reliable. :)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

joseLB,

seangriffin's FileSystemMonitor UDF will monitor a disk for you - I have found it very reliable. :)

M23

Thanks Melba ! :dance: Seems it´s exactly what I was looking for!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0