Scripts: Transfer Tags, Label and Comment <--> Alternate Data Stream; Add/Set/Find Tags, Labels and Comment (and ADS)

Discuss and share scripts and script files...
Post Reply
Norn
Posts: 504
Joined: 24 Oct 2021 16:10

Scripts: Transfer Tags, Label and Comment <--> Alternate Data Stream; Add/Set/Find Tags, Labels and Comment (and ADS)

Post by Norn »

Note:
File operations performed with software that does not support Alternate Data Streams (ADS) will result in ADS tags being lost.

Some software known to support ADS includes: XYplorer, Windows Explorer, Directory Opus (not enabled by default), GoodSync, Duplicate Cleaner, WinRAR (option must be enabled), FreeFileSync, and FastCopy (when AltStream is enabled).

Important: Windows Explorer may not preserve ADS when copying or moving files across different volumes (drives). Tools such as FreeFileSync and FastCopy (with AltStream enabled) generally preserve ADS during cross-volume operations.


Transfer Tags, Label and Comment <--> ADS(Alternate Data Stream), NTFS format only:
Transfer Tags, Label and Comment -- Alternate Data Stream (NTFS format only) (v0.6).xys


==========================================================================
Set dirty tags, labels, comments to ADS (CEA version) v0.2.xys
Backup dirty tags, labels and comments, To -> CEA-After browsing a folder (Tick -> Configuration | Information | Tags | Auto-refresh tags):

Code: Select all

 $fdrC = $fdrC+1;
 if ($fdrC > 2 && gettoken(tagexport( , "", , 6), 2, "Data:<crlf>")) {tagexport("E:\DirtyTags.dat", "", , 2); $fdrC = 0}
 perm $fdrC;
Set dirty tags, labels and comments to ADS. To -> Configuration | General | Custom Event Actions | Other Events | Exit (Tick -> Configuration | Information | Tags | Auto-refresh tags)
Read dirty tags database file and re-tagging as dirty tags v0.2.xys


*********************************************************************************************************************
Set tags by List and write tags to ADS(Alternate Data Stream), NTFS fomat only:
Set tags by List and write tags to ADS (Alternate Data Stream, NTFS fomat only)_v1.5.xys
ADS.png
ADS Tags.PNG
You do not have the required permissions to view the files attached to this post.
Last edited by Norn on 12 Feb 2026 15:08, edited 38 times in total.
Windows 11 24H2 @100% 2560x1440

Norn
Posts: 504
Joined: 24 Oct 2021 16:10

Re: Scripts: Add/Set/Find Tags, Alternate Data Stream Tags

Post by Norn »

Edit Tags/ADS Tags (Alternate Data Stream, NTFS fomat only):
Edit Tags, ADS Tags (Alternate Data Stream, NTFS fomat only)_v1.5.xys
Set last Tags/ADS Tags (Alternate Data Stream, NTFS fomat only):
Set last Tags, ADS Tags (Alternate Data Stream, NTFS fomat only)_v1.5.xys
Add Tags by popup menu and write Tags to ADS (Alternate Data Stream, NTFS fomat only):
Add Tags by popup menu and write Tags to ADS (Alternate Data Stream, NTFS fomat only)_v1.2.xys
You do not have the required permissions to view the files attached to this post.
Last edited by Norn on 17 Aug 2022 20:06, edited 15 times in total.
Windows 11 24H2 @100% 2560x1440

Norn
Posts: 504
Joined: 24 Oct 2021 16:10

Re: Scripts: Add/Set/Find Tags, Alternate Data Stream Tags

Post by Norn »

Find by Tags List via Everything tool (Alternate Data Stream) (Need Everything version 1.5 Alpha, "Index attributes" Will be faster):
Find by Tags List via Everything tool (Alternate Data Stream) (Need Everything 1.5 Alpha version, Index attributes Will be faster)_v1.2.zip
Define a macro: In Everything, type in the following search and press ENTER:
/define Tag=AlternateDataStreamUTF8:

If successful, you should see Tag=AlternateDataStreamUTF8: in the status bar for a few seconds.
Searching for tag: is now replaced with AlternateDataStreamUTF8:
Define a macro.png
Searching for tag.png
Find by Tags & Labels List: viewtopic.php?p=196057#p196057
You do not have the required permissions to view the files attached to this post.
Last edited by Norn on 01 Aug 2022 12:21, edited 10 times in total.
Windows 11 24H2 @100% 2560x1440

Norn
Posts: 504
Joined: 24 Oct 2021 16:10

Re: Scripts: Add/Set/Find Tags, Alternate Data Stream Tags

Post by Norn »

Add tags by read ADS tags of the selected items (Alternate Data Stream):
You do not have the required permissions to view the files attached to this post.
Last edited by Norn on 06 Aug 2022 19:40, edited 8 times in total.
Windows 11 24H2 @100% 2560x1440

Horst
Posts: 1374
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Scripts: Add/Set/Find Tags, Alternate Data Stream Tags

Post by Horst »

I think you mean Properties indexing in Everything, not attribute indexing.

I use Properties indexing for a list of named ADS streams.
Defined in the ini file like this:
property_alternate_data_stream_ansi=Tag=Tag;custom property 0=Comment;custom property 1=Tag
Windows 11 Home, Version 25H2 (OS Build 26200.8457)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1412b (x64), Everything Toolbar 2.3.0, Listary Pro 6.3.6.99

Norn
Posts: 504
Joined: 24 Oct 2021 16:10

Re: Scripts: Add/Set/Find Tags, Alternate Data Stream Tags

Post by Norn »

The option is named "Index attributes"...
UTF-8 format is better for me.
Last edited by Norn on 01 Aug 2022 12:15, edited 1 time in total.
Windows 11 24H2 @100% 2560x1440

Norn
Posts: 504
Joined: 24 Oct 2021 16:10

Re: Scripts: Add/Set/Find Tags, Alternate Data Stream Tags

Post by Norn »

Custom column: ADS Tags (Item type: Files and Folders):

Code: Select all

//Function : Custom column: ADS Tags (Item type: Files and Folders)
//Created  : 2022-07-28
//Modified : 2022-07-29
//Version  : 1.2

 if(exists("<cc_item>:Tags")) {                         //If ADS exists
   $data = readfile("<cc_item>:Tags");                  //Read ADS Tags
   return gettoken($data, 1, "<crlf>");                //Get the first row and return
   }
Windows 11 24H2 @100% 2560x1440

Norn
Posts: 504
Joined: 24 Oct 2021 16:10

Re: Scripts: Add/Set/Find Tags, Alternate Data Stream Tags

Post by Norn »

Set label by List, and set label to ADS (Alternate Data Stream, NTFS format only):
Set label by List, and set label to ADS (Alternate Data Stream, NTFS format only)_v1.5.xys
Set label by the popup menu, and set label to ADS (Alternate Data Stream, NTFS format only):
Set label by the popup menu, and set label to ADS (Alternate Data Stream, NTFS format only)_v1.5.xys
Set label and set label to ADS (Alternate Data Stream, NTFS format only) (Keyboard shortcut version):
Set label and set label to ADS (Alternate Data Stream, NTFS format only) (Keyboard shortcut version)_v1.5.xys
Set last label and set to ADS (Alternate Data Stream, NTFS format only):
Set last label and set to ADS (Alternate Data Stream, NTFS format only)_v1.5.xys
You do not have the required permissions to view the files attached to this post.
Last edited by Norn on 17 Aug 2022 20:09, edited 8 times in total.
Windows 11 24H2 @100% 2560x1440

Norn
Posts: 504
Joined: 24 Oct 2021 16:10

Re: Scripts: Add/Set/Find Tags and Labels, Alternate Data Stream Tags

Post by Norn »

Set label by read ADS label of the selected items (Alternate Data Stream):
You do not have the required permissions to view the files attached to this post.
Last edited by Norn on 14 Jan 2023 19:14, edited 3 times in total.
Windows 11 24H2 @100% 2560x1440

Norn
Posts: 504
Joined: 24 Oct 2021 16:10

Re: Scripts: Add/Set/Find Tags and Labels, Alternate Data Stream Tags

Post by Norn »

Edit Comment/ADS Comment (Alternate Data Stream, NTFS fomat only):
Edit Comment, ADS Comment (Alternate Data Stream, NTFS fomat only) (v1.5).xys
Custom column: ADS Comment (Item type Files and Folders):
Custom column, ADS Comment (Item type Files and Folders) (v1.2).xys
Add Comment by read ADS Comment of the selected items (Alternate Data Stream):
Add Comment by read ADS Comment of the selected item(s) (Alternate Data Stream) (v1.3).xys
You do not have the required permissions to view the files attached to this post.
Windows 11 24H2 @100% 2560x1440

Post Reply