Author Topic: [Bubzuru C#] Melt File  (Read 5748 times)

0 Members and 1 Guest are viewing this topic.

Offline bubzuru

  • Knight
  • **
  • Posts: 395
  • Cookies: 21
  • everything is contained in the data
    • View Profile
    • New School Tools
[Bubzuru C#] Melt File
« on: 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

Code: [Select]
        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
« Last Edit: November 23, 2011, 02:32:39 am by bubzuru »
Damm it feels good to be gangsta
http://bubzuru.comule.com

Offline Ghastly

  • Serf
  • *
  • Posts: 23
  • Cookies: 0
    • View Profile
Re: [Bubzuru C#] Melt File
« Reply #1 on: July 03, 2012, 04:48:17 pm »
Thank you it should help me soon.