Gallery
Software
Music
Programming
Archive
Saturday, Feb 23 Week 8

Page 1 of 1  
Showing no. 1 to 1 of 1 item

Delphi: Download file from internet using INDY. Customize the parameters for timeout and redirects. It saves the file to a given location using stream. uses windows,sysUtils,idHttp; const NONE = $00; //Blank number INET_USERAGENT = 'Mozilla/4.0, Indy Library (Windows; en-US)'; INET_REDIRECT_MAX = 10; function forceDeleteFile(pFileName:pAnsiChar):boolean; begin windows.setFileAttributes(pFileName,NONE);//clear file attributes result:=windows.deleteFile(pFileName); //then