![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Aug 2005
Posts: 17
Rep Power: 0
![]() |
Download EXE file from HTTP server
Hello all...
I'm trying to create a program to download an EXE file from a webserver and execute it on the local machine at certain time intervals. What language should I use and is there anything I need to look at in more detail? Anyone happen to know of existing free utilities that do this? -bobfox |
|
|
|
|
|
#2 |
|
Programming Guru
![]() ![]() |
You can pretty much use what ever language you want since a exe is a compiled program.
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#3 |
|
Hobbyist Programmer
Join Date: Apr 2005
Posts: 218
Rep Power: 4
![]() |
Hmm, so you mean like when someone visits a website, a program is downloaded and executed at a later time..., there are loads of programming languages; you just need to choose the one you prefer.
|
|
|
|
|
|
#4 |
|
Newbie
Join Date: Aug 2005
Posts: 17
Rep Power: 0
![]() |
I should be more specific... sorry.
I have a program that I manuallly update by going to the vendor's website and download their latest update in exe format. I want to write a script that will automate the update process, by going to this website, downloading the file, then installing it at certain times. |
|
|
|
|
|
#5 |
|
Hobbyist Programmer
Join Date: Apr 2005
Posts: 218
Rep Power: 4
![]() |
Does it happen to be a anti-virus product, If so there is an option to automatically download and install updates and there is that option in many more software products. Just search through the settings, It will be alot easier that writing a script to do it. If you carn't find the option to automatically download it; you could always try www.google.com
|
|
|
|
|
|
#6 |
|
Newbie
Join Date: Aug 2005
Posts: 17
Rep Power: 0
![]() |
Yes, its Symantec's Antivirus product and I can't get the LiveUpdate to work so I need to write some code to do it.
|
|
|
|
|
|
#7 |
|
Programming Guru
![]() ![]() ![]() |
You can use a single line of Perl for this:
(You will need to get the WWW module if you don't have it) perl -MCPAN -e 'install Bundle::LWP' This one line of Perl code will get the latest Symantec anti-virus update. You may want to script this out more to be more flexible with the filename, as the name itself will change on Symantec's site (Ususally, the date part is what you will want to change.) perl -MLWP::Simple -e "getprint 'http://definitions.symantec.com/defs/20051206-009-i32.exe'" >> update.exe
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#8 |
|
Newbie
Join Date: Aug 2005
Posts: 17
Rep Power: 0
![]() |
Thank you very much Infinite Recursion, this is EXACTLY what I needed.
|
|
|
|
|
|
#9 |
|
Programmer
Join Date: Feb 2005
Posts: 86
Rep Power: 0
![]() |
so your trying to make a virus that manually downloads when someone visits the website?
*edit*nevermind, i just read the first post, i didnt read the rest |
|
|
|
|
|
#10 |
|
Newbie
Join Date: Dec 2005
Posts: 11
Rep Power: 0
![]() |
I recommend a simple Javascript working with a Qbasic. The Javascript will download it and the Qbasic checks for new files then runs them at the time entered.
Also on the perl script added: How would you execute it? Don't you need to have it be a ".cgi" file then have an HTML/PHP/ASP ect. ect. set it to run?
__________________
I know the meaning of life. Well I almost did but then my dictionary fell apart so I lost it =( |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|