Integrate NTFS Streams handling into TC

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

User avatar
Hacker
Moderator
Moderator
Posts: 13067
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Integrate NTFS Streams handling into TC

Post by *Hacker »

serjayes,
I didn't know how I could navigate to "the Section 4.b".
Total Commander Help Index
1. Introduction
[...]
4. Configuration and switches
a. Command line parameters
b. INI-File settings: wincmd.ini (1: Configuration A-M, 2: N-Z, 3: the rest), wcx_ftp.ini (for FTP)
[...]
Total Commander is Copyright © 1993-2023 by Christian Ghisler, Ghisler Software GmbH
All mentioned Trademarks and Copyrights belong to their respective owners.
HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Dalai
Power Member
Power Member
Posts: 9393
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Integrate NTFS Streams handling into TC

Post by *Dalai »

serjayes wrote: 2023-10-24, 11:24 UTCI didn't know how I could navigate to "the Section 4.b". Now, thinking more, I guess you count the "books" displayed.
No need to count anything. The sections are shown in TC help's main page (help index). Each section has its number and each subsection has a letter.
and I still don't know what exactly that entry is supposed to control. Is "enabled" (1) only about copying out of the packed files using local packer?
Yes, that's what I concluded as well. The documentation of this setting is very lacking because it doesn't mention archives at all.
How does the feature which can be enabled or disabled actually work? Is there a description of that somewhere? What's affected and what isn't?
I read it as follows:

Code: Select all

0: disabled
1: enabled, when unpacking files internally or via plugins, copy "Zone.Identifier" data stream from archive to unpacked files
2: Internet http
4: Anonymous ftp
8: ftp with login
16: Intranet-http
The added text can be found in history.txt. But there are still details missing: Does HTTPS count as HTTP? Is opening a new FTP connection with Ctrl+N and specifying a username in the form of ftp://user@server considered as "ftp with login"? Or does "ftp with login" apply only to saved FTP connections (Ctrl+F)? How does TC differentiate between Internet and Intranet? I guess the latter can be answered by saying "it's taken from the OS (Internet Explorer) settings", but it's not clear enough and leaving users guessing is bad.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Integrate NTFS Streams handling into TC

Post by *ghisler(Author) »

Does HTTPS count as HTTP?
Yes, amd FTPS counts as FTP.
FTP connection with Ctrl+N and specifying a username
That's not anonymous, so it's FTP with login.
How does TC differentiate between Internet and Intranet?
Local IPv4 addresses are 127.0.0.1, 10.*.*.*, 192.168.*.* and 172.16.*.* to 172.30.*.*.
IPv6 has similar ranges.
Author of Total Commander
https://www.ghisler.com
serjayes
Junior Member
Junior Member
Posts: 56
Joined: 2004-01-19, 16:53 UTC

Re: Integrate NTFS Streams handling into TC

Post by *serjayes »

Thanks *Hacker and *Dalai: I clearly haven't expected to see any numbers on the right, seeing just unnumbered items on the left. I guess now, adding numbers in the left "tree" would break something.

*Dalai many thanks for the explanation based on the history.txt.

Now did I understand it correctly (if somebody knows, can guess or can try on a few examples, I don't have such files at the moment and don't know how to make them fast):

Is it, for the origins of the files like "Internet http" etc, the setting also about just the actions which can happening during the extraction from an archive with such an origin, that is, is the whole "WantZoneData" entry there only to, in all cases, control only the extraction from the archives?
(user licence #64081)
User avatar
Dalai
Power Member
Power Member
Posts: 9393
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Integrate NTFS Streams handling into TC

Post by *Dalai »

serjayes wrote: 2023-10-24, 14:32 UTCthat is, is the whole "WantZoneData" entry there only to, in all cases, control only the extraction from the archives?
No, the setting isn't just about extracting files from archives. It's also about other files downloaded from (external) sources mentioned in the help text. In TC 9.x and older, such downloads didn't get such zone information, but in TC 10 and newer they do by default. Windows shows an additional warning/confirmation dialog for (executable) files from a different "zone" before actually executing them.

But you can limit the setting to apply only to extracted files by setting its value to 1.

2ghisler(Author)
Thanks for the explanation. I strongly recommend to add these details to the TC help, alongside the information about extracting files from archives. Maybe like so:

Code: Select all

0: disabled
1: enabled, when unpacking files internally or via plugins, copy "Zone.Identifier" data stream from archive to unpacked files
2: Internet http(s)
4: Anonymous ftp(s)
8: ftp(s) with login; includes new connections made in the form ftp://user@server
16: Intranet-http(s)
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Integrate NTFS Streams handling into TC

Post by *petermad »

2Dalai

here how it is described in TC 11.02rc4
Help wrote:WantZoneData=7 Stores Zone Transfer data in NTFS streams:
1: enabled, when copying or unpacking files internally or via plugins, copy "Zone.Identifier" data stream from source/archive to target files
2: Internet http(s)
4: Anonymous ftp(s)
8: ftp(s) with login (also new connections with user name)
16: Intranet-http(s)
Isn't that close enough to what you suggest?

I suggest that the first line is changed to:
WantZoneData=7 Stores Zone Transfer data in NTFS streams. Sum of:
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Dalai
Power Member
Power Member
Posts: 9393
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Integrate NTFS Streams handling into TC

Post by *Dalai »

2petermad
Yes, this is fine. And I agree with the "sum of" detail.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Integrate NTFS Streams handling into TC

Post by *white »

petermad wrote: 2023-10-26, 14:37 UTC here how it is described in TC 11.02rc4
Help wrote:WantZoneData=7 Stores Zone Transfer data in NTFS streams:
1: enabled, when copying or unpacking files internally or via plugins, copy "Zone.Identifier" data stream from source/archive
What is meant by "copying" and "from source". It doesn't seem right.
Post Reply