Page 1 of 1

Editing tags doesn't restore functionality

Posted: 26 Apr 2018 15:18
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?

Re: Editing tags doesn't restore functionality

Posted: 26 Apr 2018 15:43
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...

Re: Editing tags doesn't restore functionality

Posted: 26 Apr 2018 15:53
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:

Re: Editing tags doesn't restore functionality

Posted: 26 Apr 2018 15:55
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