well i needed to "melt" a file, so i deceded to look at unmapping the file and deleting from the running exe , then i thought fuck it n wrote this. cmd is allowed in most enviroments
public static void Melt()
{
//Make sure you exit the app (return, this.Close())
//after running this function
System.Diagnostics.ProcessStartInfo info = new System.Diagnostics.ProcessStartInfo();
System.Reflection.Assembly a = System.Reflection.Assembly.GetEntryAssembly();
string self = System.IO.Path.GetFullPath(a.Location);
info.CreateNoWindow = true;
info.UseShellExecute = false;
info.FileName = "cmd";
info.Arguments = "/c ping google.com & del " + '"' + self + '"';
System.Diagnostics.Process.Start(info);
//Now you need to exit the app , Bye
}
Have Fun