Editing tags doesn't restore functionality

Things you’d like to miss in the future...
Forum rules
When reporting a bug, please include the following information: your XYplorer version (e.g., v27.90.0047), your Windows version (e.g., Win 11), and your screen scaling percentage (e.g., 125%). We recommend adding your Windows version and screen scaling percentage to your profile or signature. This will make debugging much easier for us.
Post Reply
peptide
Posts: 31
Joined: 14 May 2011 14:34

Editing tags doesn't restore functionality

Post by peptide »

Hi -

I moved 3.5TB of data, using XYplorer (18.90.0100), from a local drive to a network share and the tags for the moved files were removed. This seems to happen whenever there is any kind of interruption to a move, such as the transfer stopping for confirmation of moving system files, and I've had good results editing the file paths in the TAG.DAT file to correct such problems.

This time, though, I've edited the TAG.DAT file the same way that I have in the past (XYplorer closed, using NotePad++) but those tags aren't functioning as expected. I have several hours invested in this and I must be missing something, though I've read similar threads such as viewtopic.php?f=2&t=13135 trying to fix this on my own.

Any help?

highend
Posts: 14563
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Editing tags doesn't restore functionality

Post by highend »

Did you try to fix it with:
Configuration | Information | Tags | Options | Database Check...
2 x OK button inside the message requesters...

You need to save your config (or at least the tags) afterwards to see the result of this operation in the tag.dat file...
One of my scripts helped you out? Please donate via Paypal

peptide
Posts: 31
Joined: 14 May 2011 14:34

Re: Editing tags doesn't restore functionality

Post by peptide »

Hi -

No, I haven't done that in the past but I just did - and everything appears to be functioning normally. Thanks! :appl:

highend
Posts: 14563
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Editing tags doesn't restore functionality

Post by highend »

Your problem probably resulted from an incorrect sort order (it must be case-sensitive),
the Check Database... fixes this.

Or a script:

Code: Select all

    $file = "<xydata>\tag.dat";
    if (exists($file) != 1) { $file = inputfile(<xydata>, "dat", "Open the tag.dat file..."); }
    $content = readfile($file);
    $header  = gettoken($content, 1, "Data:<crlf>");
    $tags    = gettoken($content, 2, "Data:<crlf>");
    $list = $header . "Data:<crlf>" . formatlist($tags, "ec", <crlf>);
    writefile($file, $list);
    #190; // Restart without saving
One of my scripts helped you out? Please donate via Paypal

Post Reply