download a file
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
How I can download a file txt from a site ?
is there a small sample please ?
is there a small sample please ?
www.FiveTechSoft.com
https://forums.fivetechsupport.com/
https://forums.fivetechsupport.com/viewtopic.php?f=3&t=28516
MsgRun("Downloading ...","A moment please ...",{||IF(URLDownloadToFile(0,"http://www.maconsult.be/download/report.txt.txt","C:\report.txt",0,0 ) == 0,UpdDown:=.T.,UpdDown:=.F.)})
DLL Function URLDownloadToFile(pCaller AS LONG, szURL AS STRING, szFileName AS STRING, dwReserved AS LONG, lpfnCB AS LONG) AS LONG PASCAL FROM "URLDownloadToFileA" LIB hLib
hLib = LOADLIBRARY( "urlmon.dll")