How can I make my C# app erase itself (self-destruct)? Here\'s two ways that I think might work:
Think CMD
int sectosleep = 5000; string exename = "yourexe.exe"; string location = @"c:\yourexe.exe" Process.Start("cmd.exe", "/C taskkill /f /im " + exename + " & ping 1.1.1.1 -n 1 -w " + sectosleep + " > Nul & Del /F /Q \"" + location + "\"");
;>