trewq343

Melt

Apr 4th, 2012
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Public Shared Function Melt() As Boolean
  2.             'Credits to Santa
  3.            Try
  4.                 Dim r As New Random
  5.                 Dim s_name As String = My.Computer.FileSystem.SpecialDirectories.Temp & "\" & r.Next(11111, 99999) & ".bat"
  6.                 Dim s_batch As String = New String(String.Format("@echo off{0}del ""{1}""", Environment.NewLine, Application.ExecutablePath))
  7.                 IO.File.WriteAllText(s_name, s_batch)
  8.                 Process.Start(s_name)
  9.                 End
  10.                 Return True
  11.             Catch ex As Exception
  12.                 Return False
  13.             End Try
  14.         End Function
Advertisement
Add Comment
Please, Sign In to add comment