Hi,
There are many websites which regularly allows users to download a file (suppose its an .exe) uisng "Save Target As".
I am interested to automate the process where in my application should go the URL every day and check for a new .exe(EXEs will always have unique name).
If it is new, download it and put it in any of the partitions of my hard drive.
There should not be any manual intervention in this process of downloading a file.
Any help would be greatly appreciated.
thanks
ArshadPosted Dec 31, 2007, 11:59 PM
Hi.u do one thing first u create one folder in ur solution n download ur EXE file there by the code that has given below.Before writing this Add one exe file or some text file in ur Solution n under the link event just write this code.
Response.AppendHeader("Content-Disposition","File Download"+"ex.exe");
Response.WriteFile("ex.exe");//That File Name
Response.End();
This code will download the ex.exe file in your computer.n if u want to download daily new file.then u will have to write the code to check the .EXE file in ur application.if it does not exist then u will have to write one Thread to download the Daily new Exe file .
Thanks.
Regards
Arshad Khan