Downloading Latest D Language DMD compiler via Windows 10 batch script file.

Eugene Wissner belka at caraus.de
Tue Dec 17 18:51:04 UTC 2019


On Tuesday, 17 December 2019 at 18:32:30 UTC, H. S. Teoh wrote:
> On Tue, Dec 17, 2019 at 06:08:05PM +0000, Eugene Wissner via 
> Digitalmars-d wrote: [...]
>> [...]
> [...]
>
> Not really.  The idea is this:
>
> 1) Have a fixed URL that never changes, that always points to 
> the latest
>    release. So your script doesn't have to figure out anything, 
> just
>    download from the fixed URL.
>
> 2) Use HTTP 307 to redirect the fixed URL to the actual URL, so 
> that the
>    downloaded filename will have the correct version embedded.
>
> 3) The script can parse the filename to figure out what the 
> version is.
>
>
> T

ah yes, would work too. +1


More information about the Digitalmars-d mailing list