13 Years of Service
24%
Author: enzo_
Code:
>cs # ------------------------------------------------ ----------------------------
, Author: enzo_
; Language: AutoIt
; Function: File Download and Execute
; http://www.autoitscript.com/autoit3/docs/functions/InetGet.htm
# ce ------------------------------------------------ ----------------------------
If FileExists (@ TempDir & "\ resource.exe") Then; Verifies that the Temp folder exists If the file resource.exe
FileDelete (@ TempDir & "\ resource.exe"); resource.exe Deletes the file if it exists in the TEMP folder
EndIf
Sleep (1000); Delay of 1 second
$ UrlDownloader = "http://www.angusj.com/resourcehacker/reshack_setup.exe"; Sets the variable $ UrlDownload is the Link "http://www.angusj.com/resourcehacker/reshack_setup.exe"
$ = @ TempDir Directory & "\ resource.exe"; Sets the variable $ Directory is installed on and I'm afraid to be "\ resource.exe"
InetGet ($ UrlDownloader, $ Directory); Declaring function Inetget variables ($ UrlDownloader, $ Directory)
Run ($ Directory); Performs variable $ serpa Directory that file TempDir @ & "\ resource.exe"
Sleep (5000); Delay 5 Seconds
FileDelete (@ TempDir & "\ resource.exe") Delete the file so that it can run normally