Windows Buildbot Download Helper Script

Windows Buildbot Download Helper Script

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Windows Buildbot Download Helper Script

Post by hoijui »

This is a simple Windows (tested on XP) batch script. It wants a URL as first and only parameter. If the URL has one of the following extensions, it downloads the file: ".7z", ".zip", ".tar", ".exe". When it is one of the 3 archive files, it tries to extract it with 7zip. If the URL does not have any of the above extensions, it opens the URL in the default browser.
It needs wget.exe and 7zip, which can be found here:
http://users.ugent.be/~bpuype/wget/
http://www.7-zip.org/

you need to edit the file, setting some paths in vars at the head of the script. of course it could also easily be edited to not extract.
CAUTION: When extracting, it will overwrite files without warning.

i set this file as the default browser in SL, works great.
refined or expanded versions are welcome ;-)
Attachments
wget_browser_switch.txt
rename to .cmd or .bat
CAUTION: will overwrite without warning
(1.63 KiB) Downloaded 109 times
Post Reply

Return to “Engine”