Login Register


[VB.NET] Melt File (no drops) [Pure Code] filter_list
Author
Message
[VB.NET] Melt File (no drops) [Pure Code] #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 Sub


To call you use



Code:
MeltFile()


Credits to GeneralDee
[Image: vzV2W]

Reply

RE: [VB.NET] Melt File (no drops) [Pure Code] #2
What exactly does melting the file do?
[Image: backspacez1.png]

Reply

RE: [VB.NET] Melt File (no drops) [Pure Code] #3
(07-04-2011, 11:48 AM)Clan99 Wrote:
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 Sub


To call you use



Code:
MeltFile()


Credits to GeneralDee

No ofence but you suck.
Stop posting years old code that doesn't even work properly.

Reply







Users browsing this thread: