Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 7th, 2005, 8:58 AM   #1
bobfox
Newbie
 
Join Date: Aug 2005
Posts: 17
Rep Power: 0 bobfox is on a distinguished road
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
bobfox is offline   Reply With Quote
Old Dec 7th, 2005, 8:59 AM   #2
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
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!
Pizentios is offline   Reply With Quote
Old Dec 7th, 2005, 9:10 AM   #3
zorin
Hobbyist Programmer
 
Join Date: Apr 2005
Posts: 218
Rep Power: 4 zorin is on a distinguished road
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.
zorin is offline   Reply With Quote
Old Dec 7th, 2005, 9:24 AM   #4
bobfox
Newbie
 
Join Date: Aug 2005
Posts: 17
Rep Power: 0 bobfox is on a distinguished road
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.
bobfox is offline   Reply With Quote
Old Dec 7th, 2005, 9:28 AM   #5
zorin
Hobbyist Programmer
 
Join Date: Apr 2005
Posts: 218
Rep Power: 4 zorin is on a distinguished road
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
zorin is offline   Reply With Quote
Old Dec 7th, 2005, 9:44 AM   #6
bobfox
Newbie
 
Join Date: Aug 2005
Posts: 17
Rep Power: 0 bobfox is on a distinguished road
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.
bobfox is offline   Reply With Quote
Old Dec 7th, 2005, 10:59 AM   #7
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
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."
Infinite Recursion is offline   Reply With Quote
Old Dec 7th, 2005, 3:20 PM   #8
bobfox
Newbie
 
Join Date: Aug 2005
Posts: 17
Rep Power: 0 bobfox is on a distinguished road
Thank you very much Infinite Recursion, this is EXACTLY what I needed.
bobfox is offline   Reply With Quote
Old Dec 7th, 2005, 4:46 PM   #9
arod199113
Programmer
 
arod199113's Avatar
 
Join Date: Feb 2005
Posts: 86
Rep Power: 0 arod199113 is an unknown quantity at this point
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
arod199113 is offline   Reply With Quote
Old Dec 17th, 2005, 3:07 AM   #10
coldfx
Newbie
 
coldfx's Avatar
 
Join Date: Dec 2005
Posts: 11
Rep Power: 0 coldfx is an unknown quantity at this point
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 =(
coldfx is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:35 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC