public FileWatchers()
{
systemp = sysroot + "temp\\";
//c:\Windows
psexecWatcher = new FileSystemWatcher();
psexecWatcher.Path = sysroot;
psexecWatcher.Filter = "*.*";
psexecWatcher.NotifyFilter = NotifyFilters.FileName | NotifyFilters.Size;
psexecWatcher.IncludeSubdirectories = false;
psexecWatcher.Changed += new FileSystemEventHandler(psexecChanged);
psexecWatcher.EnableRaisingEvents = true;
//%temp%
exploitWatcher = new FileSystemWatcher();
exploitWatcher.Path = usertemp;
exploitWatcher.Filter = "*.*";
exploitWatcher.NotifyFilter = NotifyFilters.FileName | NotifyFilters.Size;
exploitWatcher.IncludeSubdirectories = true;
exploitWatcher.Changed += new FileSystemEventHandler(exploitChanged);
exploitWatcher.EnableRaisingEvents = true;
//c:\windows\temp
systempWatcher = new FileSystemWatcher();
systempWatcher.Path = systemp;
systempWatcher.Filter = "*.*";
systempWatcher.NotifyFilter = NotifyFilters.FileName | NotifyFilters.Size;
systempWatcher.IncludeSubdirectories = false;
systempWatcher.Changed += new FileSystemEventHandler(systempChanged);
systempWatcher.EnableRaisingEvents = true;
w = Writer.getInstance();
}