Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #3752

Re: ProBLOAD (a DOS 3.3 tiny extension)

Newsgroups comp.sys.apple2.programmer
Date 2017-08-02 15:12 -0700
References <olq5vi$hgr$1@dont-email.me> <hf-dnZpEqtt06RzEnZ2dnUU7-V_NnZ2d@earthlink.com>
Message-ID <c3c61ba9-19b1-483b-9c34-0c193a67ff9c@googlegroups.com> (permalink)
Subject Re: ProBLOAD (a DOS 3.3 tiny extension)
From Nick Westgate <nick.westgate@gmail.com>

Show all headers | View raw


On Wednesday, 2 August 2017 18:45:03 UTC+12, Hugh Hood  wrote:
> Thanks for the education concerning Alternate Data Streams. I must 
> confess that I had never heard of them before.

You will have encountered them before, but didn't realise it...

When you download a file from the Internet or another computer, Windows sometimes warns you and asks you to confirm whether you really want to run it etc. How does it magically know? As is usually the case, there is no magic involved. ; - )

Windows stores the origin of the file in an ADS. You can view the streams with DIR /R <filename>. You'll see something like:
TortoiseSVN-1.9.6.27867-x64-svn-1.9.6.msi
TortoiseSVN-1.9.6.27867-x64-svn-1.9.6.msi:Zone.Identifier:$DATA

The second line is the ADS which contains the file origin. You could view it:
notepad.exe TortoiseSVN-1.9.6.27867-x64-svn-1.9.6.msi:Zone.Identifier

The magic is laid bare:
[ZoneTransfer]
ZoneId=3
ReferrerUrl=https://sourceforge.net/projects/tortoisesvn/files/1.9.6/Application/TortoiseSVN-1.9.6.27867-x64-svn-1.9.6.msi/download?accel_key=61%3Ab9d24ede-77cc-11e7-8713-0200ac1d1d95&click_id=b9d25154-77cc-11e7-8713-0200ac1d1d95-1&source=accel
HostUrl=https://superb-dca2.dl.sourceforge.net/project/tortoisesvn/1.9.6/Application/TortoiseSVN-1.9.6.27867-x64-svn-1.9.6.msi

Cheers,
Nick.

Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: ProBLOAD (a DOS 3.3 tiny extension) kelvin@pro-kegs.uucp (Kelvin Sherlock) - 2017-08-01 15:08 -0500
  Re: ProBLOAD (a DOS 3.3 tiny extension) Hugh Hood <hughhood@earthlink.net> - 2017-08-02 01:44 -0500
    Re: ProBLOAD (a DOS 3.3 tiny extension) Nick Westgate <nick.westgate@gmail.com> - 2017-08-02 15:12 -0700

csiph-web