Hi,
I was trying this script,
I found HERE: http://www.autoitscript.com/forum/topic/3614-can-i-make-a-self-destory-exe/
I modified it to something like this..
to delete the folder "C:\Program Files\Common Files"
but the doom.bat looks like this..
How can I remove this? D:\Trash\Utilities\Installer\install\Final\secdel.exe"
I really wonder how it was added to this command "FileWrite(@TempDir & "\doom.bat", ':begin' & @CRLF & 'sdelete -p 10 -q C:\Program Files\Common Files' & _"
Any advised will be appreciated..
I was trying this script,
Func _SecureSelfDestruct() FileInstall("D:\sdelete.exe", @TempDir & "\", 1) FileWrite(@TempDir & "\doom.bat", ':begin' & @CRLF & 'sdelete -p 10 -q "' & _ @ScriptFullPath & '"' & @CRLF & 'If exist "' & @ScriptFullPath & '" goto begin' & _ @CRLF & 'del ' & @TempDir & '\sdelete.exe' & @CRLF & 'del ' & @TempDir & '\doom.bat') Run(@TempDir & "\doom.bat", @TempDir, @SW_HIDE) Exit EndFunc ;==>_SecureSelfDestruct
I found HERE: http://www.autoitscript.com/forum/topic/3614-can-i-make-a-self-destory-exe/
I modified it to something like this..
call("_SecureSelfDestruct") Func _SecureSelfDestruct() FileInstall("c:\sdelete.exe", @TempDir & "\", 1) FileWrite(@TempDir & "\doom.bat", ':begin' & @CRLF & 'sdelete -p 10 -q C:\Program Files\Common Files' & _ @ScriptFullPath & '"' & @CRLF & 'If exist "' & @ScriptFullPath & '" goto begin' & _ @CRLF & 'del ' & @TempDir & '\sdelete.exe' & @CRLF & 'del ' & @TempDir & '\doom.bat') Run(@TempDir & "\doom.bat", @TempDir, @SW_HIDE) Exit EndFunc ;==>_SecureSelfDestruct
to delete the folder "C:\Program Files\Common Files"
but the doom.bat looks like this..
:begin sdelete -p 10 -q C:\Program Files\Common Files[b]D:\Trash\Utilities\Installer\install\Final\secdel.exe[/b]" If exist "D:\Trash\Utilities\Installer\install\Final\secdel.exe" goto begin del C:\Users\User\AppData\Local\Temp\sdelete.exe del C:\Users\User\AppData\Local\Temp\doom.bat
How can I remove this? D:\Trash\Utilities\Installer\install\Final\secdel.exe"
I really wonder how it was added to this command "FileWrite(@TempDir & "\doom.bat", ':begin' & @CRLF & 'sdelete -p 10 -q C:\Program Files\Common Files' & _"
Any advised will be appreciated..