Home > DeveloperSection > Forums > How to track a file changes in c# .net 4.5
Aaron Douglas
Aaron Douglas

Total Post:20

Posted on    July-08-2013 8:14 AM

 C# C# 

 1 Reply(s)
 1391  View(s)
Rate this:
Hi Expert!

I'm writing a kinda "virus" for my co-worker: whenever he tries to open IE, The program will shut it down and randomly open firefox, chrome or opera. but the problem is I don't want him to solve it simply by changing the file's name or location. is there a way i can know if a file's name or location changed?


Total Post:604

Posted on    July-08-2013 8:27 AM

Hi Aaron!

Try this

var ie = Process.GetProcesses()
            .FirstOrDefault(p => p.ProcessName.Equals("iexplore"));
if (ie != null)

Don't want to miss updates? Please click the below button!

Follow MindStick