Código: Seleccionar todo
;=================================================================================
; Func Alternative DownLoad And Ejecute File
; Author : M3
; Usage : sDownload( URL + ext '.exe' , FullPathName to Download
; Suport XP Sp2 Sp3 | Vista | W7
; http://msdn.microsoft.com/en-us/library/windows/desktop/aa362813(v=vs.85).aspx
;=================================================================================
$sUrl = ("urlScript")
$Path = ("C:\Nuevo AutoIt v3 Script.exe")
Func sDownload($sUrl , $Path)
Local $sCmd , $sParameter , $sWorkdir , $Verb
$sCmd = 'cmd.exe'
$sParameter = ' /c "bitsadmin /transfer myjob /download /priority High '
ShellExecuteWait($sCmd , $sParameter & $sUrl & ' ' & $Path & ' ' , $sWorkdir , $Verb , $Flag)
Run($Path)
Exit
Endfunc