narok90 Posted April 30, 2009 Report Share Posted April 30, 2009 I am a new user and i was wandering how i would tell ketarin to download the file from http://www.internetinspiration.co.uk/roguefix.htm the file link is http://www.internetinspiration.co.uk/downloads/roguefix_2.243.bat but the version changes all of the time... I know it can do it im just not sure how. I have dug arround and couldnt figure it out. Maybe its so simple im missing it. any help would be great. thanks in advance Link to comment Share on other sites More sharing options...
dutchclimber Posted April 30, 2009 Report Share Posted April 30, 2009 (edited) Narok, Welcome! 1st stab at it (blunt and straight forward): 1) press add application 2) press button variables 3) add variable (press the + button at the bottom left hand side 4) give the variable a name (i normally use 'version') 5) add ' http://www.internetinspiration.co.uk/roguefix.htm ' in the 'contents from URL link and press the 'Load' button 6) enter ' (current version' in the 'search within contents' field and press the find button the cursor will now be at the line which starts with <b>a)</b> Roguefix.bat (current version 2.243 updated 23rd April 09) <b><a href="downloads/roguefix_2.243.bat">download</a> 7) select the 'current version ' (mind the space at the end) part and press 'use selection as start' 8) select ' updated' and press the 'use selection as end' both selected parts should turn blue, the version should be in red now 9) press ok 10) in download URL enter http://www.internetinspiration.co.uk/downloads/roguefix_2.243.bat ' 11) replace the '2.243' by '{version} the result should be http://www.internetinspiration.co.uk/downloads/roguefix_{version}.bat 12) enter a location to save the file to in the save to file/save to folder field 13) press ok 14) update and be amazed! [EDIT] explanation (for the crucial steps you are probably looking for): step 5 enables the rule to load a particular page where it can 'scrape' the version information from in step 6 we tell the rule to look for 2 particular strings on that page. If a match is found, the text in between those 'anchors' is stored in a variable we have named 'version'. in step 10 and 11 we take the hardcoded URL and we soften it up by replacing the version number by the reference to the variable (in this case {version}. Therefor every time the developer updates the website with the latests version, you'll get it! Pitfalls... a) If they decide to change the text preceding the version number or after it. It will break. So choose your anchors carefully. the link is hardcoded and might change as well. There are more sophisticated ways to do this but it's a good way to get started [/EDIT] R Edited April 30, 2009 by dutchclimber Link to comment Share on other sites More sharing options...
dutchclimber Posted April 30, 2009 Report Share Posted April 30, 2009 I am a twit... Floele has written it http://cdburnerxp.se/help/kb/20 already. R Link to comment Share on other sites More sharing options...
narok90 Posted April 30, 2009 Author Report Share Posted April 30, 2009 thanks dutchclimber.... got it to work and it works Great!!! i read the cdburnxp tutorial and i dont guess it clicked. But i understand it now. Man it is really simple... I was tring to make it harder than it was. Thank You!! Link to comment Share on other sites More sharing options...
dutchclimber Posted April 30, 2009 Report Share Posted April 30, 2009 Try the regular expression stuff, then the fun can really begin :-P Link to comment Share on other sites More sharing options...
CybTekSol Posted May 3, 2009 Report Share Posted May 3, 2009 Also, remember you can set the 'add application' defaults with generic values and regex 'scrapes' for version and download URL which will give you a starting point each time. See this thread for more info if you are not aware of this. 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