Page 1 of 1

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

Posted: 28 Jul 2022 05:07
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

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

Posted: 28 Jul 2022 05:08
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

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

Posted: 28 Jul 2022 05:12
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

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

Posted: 28 Jul 2022 05:18
by Norn
Add tags by read ADS tags of the selected items (Alternate Data Stream):

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

Posted: 28 Jul 2022 09:43
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

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

Posted: 28 Jul 2022 19:10
by Norn
The option is named "Index attributes"...
UTF-8 format is better for me.

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

Posted: 28 Jul 2022 19:12
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
   }

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

Posted: 29 Jul 2022 21:13
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

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

Posted: 30 Jul 2022 11:25
by Norn
Set label by read ADS label of the selected items (Alternate Data Stream):

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

Posted: 05 Aug 2022 19:32
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