Actually I have few questions, answering any one will help me with my next step.
I'm trying to monitor a specific folder for any changes, and i'm thinking about the action if the folder has modified.
one of the action is detect the process who causes the change in that folder and kill it, found the tool from MS Handle.exe. Trying to use it in CMD
Code: Select all
handle.exe "d:\Monitored Folder"
Code: Select all
explorer.exe pid: 4044 type: File F78: D:\Monitored Folder
explorer.exe pid: 4044 type: File 10F0: D:\Monitored Folder
AM Hotkeys.exe pid: 964 type: File C: D:\Monitored Folder
- Is there anything in AHK like this tool that I can use to know which process made the changes?
Or maybe some one knows something like that out of AHK i can try to use it in my AHK script?
I have the tool in path that has spaces, I couldn't figure out why it doesn't work even if I use quotes "Program Files" in AHK (in batch it works)
It is in C:\Program Files\Tools\Handle.exe
I'm doing like:
Code: Select all
Run %comspec% /k "%A_ProgramFiles%\Tools\Handle.exe" "D:\Monitored Folder" > D:\log.log
Any help or suggestion will be appreciated.
Thank you
Rami