botanic Posted January 11, 2007 Share Posted January 11, 2007 Im trying to make an autoupdater for a bot im making, I am trying to make it so that it automaticaly dl's files off my webpage anyone have any ideas on how I can do this? Link to comment Share on other sites More sharing options...
CoePSX Posted January 11, 2007 Share Posted January 11, 2007 Here's the scheme I use: Host a Ini file on the server, containing the version of all the product files with their respetive name, description and URL. Make a little updating script which will download this ini file, compare the file versions (FileGetVersion) with the ini one, and download (and replace) the files with fresh new ones downloaded from the urls with InetGet. You can use a progress bar based on the total file size / @InetBytesRead. And a status bar which shows what file it's downloading (from the ini description). [quote name='Valik' post='301213' date='Jan 31 2007, 10:36 PM']You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.[/quote][font="Lucida Sans Unicode"]╔══════════════════════════════╗║░░██░░░░░░░░██░░███░░░████░░░█║║░█░░█░░██░░█░░█░█░░█░█░░░░█░█░║║░█░░░░█░░█░████░███░░░██░░░█░░║║░█░░█░█░░█░█░░░░█░░░░░░░█░█░█░║║░░██░░░██░░░██░░█░░░░███░█░░░█║╚══════════════════════════════╝[/font] Link to comment Share on other sites More sharing options...
botanic Posted January 11, 2007 Author Share Posted January 11, 2007 I get the ini part but how do i make it actually do the downloading? Link to comment Share on other sites More sharing options...
ThaSatelliteGuy Posted January 11, 2007 Share Posted January 11, 2007 I get the ini part but how do i make it actually do the downloading?search inet in help. I think it is inetget(URL) Link to comment Share on other sites More sharing options...
flyingboz Posted January 11, 2007 Share Posted January 11, 2007 search inet in help. I think it is inetget(URL)If you need more robust return codes than inetget() provides, you may wish to write or locate a wrapper written around curl or wget, or your favorite ftp client. Reading the help file before you post... Not only will it make you look smarter, it will make you smarter. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now