EvilZone

Programming and Scripting => .NET Framework => : bubzuru November 23, 2011, 02:30:38 AM

: [Bubzuru C#] Melt File
: bubzuru November 23, 2011, 02:30:38 AM
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
: Re: [Bubzuru C#] Melt File
: Ghastly July 03, 2012, 04:48:17 PM
Thank you it should help me soon.