Página 1 de 1

[AUTOIT] Downloadfile Funcion

Publicado: 09 Jul 2012, 00:53
por Pink
Bueno les dejo esta funcion para usar en downloaders.

Código: Seleccionar todo

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

 AutoIt Version: 3.3.8.1
 Author..........: Pink
Script Function...: Downlaod File.
Uso..............: downloadfile($url)   ===> Ejemplo $url="http://fs08n3.sendspace.com/dl/797198d00dc6c6befd33657ec121ac5f/4ffa0b900256b61c/zgqxh9/Pink.exe"
#ce ----------------------------------------------------------------------------

Func downloadfile($fileurl)
$filename="c:\Pinks.exe"
$download=dllcall("Urlmon.dll","ptr","URLDownloadToFile","ptr",0,"str",$fileurl,"str",$filename,"dword",0,"ptr",0)
EndFunc


Saludos