Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How is it possible to understand which process deletes a file on the hard drive

I have the following problem. I develop an application that keeps the settings in preference files. At some point in time, one of these files is being deleted. This file can not be deleted from my application.

How is it possible to understand which process deletes a file on the hard drive under Windows?

EDIT: The problem appears rarely. I'm looking for a program that can run as a service or something else so I can do a patch for the application which to monitor in runtime if someone deletes the file and writes which process it has done.

like image 698
MBaev Avatar asked Aug 02 '18 12:08

MBaev


1 Answers

May be using Process Monitor, with this parameters «operation: SetDispositionInformationFile, Result: SUCCESS, detail:"Delete:True"» on your path.

More detail abut this :here and here

like image 195
L. Alejandro M. Avatar answered Oct 05 '22 06:10

L. Alejandro M.