Is there a way to detect deletion of a file before windows performs the deletion? I found FileSystemWatcher class but the event is raised only after the delete action is per
You need a filesystem filter driver. However I strongly suggest that if you don't know the answer you probably shouldn't be doing it.
http://msdn.microsoft.com/en-us/library/windows/hardware/gg462968.aspx