Is it possible to show OneDrive file status?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
jupe
Posts: 1330
Joined: 20 Oct 2017 21:14
Location: 20H2 x64

Re: Is it possible to show OneDrive file status?

Post by jupe » 08 Sep 2019 04:04

I also ran into this issue since I upgraded to Windows 1903, I think that Microsoft must have changed the way the sync client works (or it is just malfunctioning, I have had OneDrive issues in the past) I didn't bother fully investigating it, at the time I just quickly knocked up the below modification to the script, you may be able to improve it (regexmatches/gettokenindex etc), I never bothered because it worked well enough for my needs as is, it requires versions of XY 19.80+, so wasn't possible to be done this way at the time of the original scripts creation.

Code: Select all

      $state = property("Attrib", <cc_item>);
      if ($state Like "*M*") {
       return "<xyicons>\od.ico";
     } elseif ($state Like "*P*") {
       return "<xyicons>\od_a.ico";
     } else { return "<xyicons>\od_dl.ico"; }

LukeDukem
Posts: 4
Joined: 07 Sep 2019 13:51

Re: Is it possible to show OneDrive file status?

Post by LukeDukem » 08 Sep 2019 19:44

Thanks for your answer. I tried your solution, but it seems that it doesn't work really well for all files and folders... your script seems not to be "complete", it doesn't handle all attributes.
I tried to complete the script by reading out the attributes a little bit better:

Code: Select all

$state = property("Attrib", <cc_item>);
if ($state == "A") { 
    return "<xyicons>\od_dl.ico"; }
elseif ($state == "D" || $state == "DAU" || $state == "DU" || $state == "DA" || $state == "AUM") { 
    return "<xyicons>\od.ico"; }
elseif ($state Like "*P*") {
       return "<xyicons>\od_a.ico"; }
else { return "<xyicons>\od_dl.ico"; }
But my testing results are not really good... some files are not shown the same icon as in original explorer file manager...

Anybody another idea? Would be so great if xyplorer could handle this, I think more and more users are using cloud data space, so this would be a rich enhancement for ths software.

LukeDukem
Posts: 4
Joined: 07 Sep 2019 13:51

Re: Is it possible to show OneDrive file status?

Post by LukeDukem » 20 Sep 2019 08:35

Got nobody an idea? How can we use XYPlorer with OneDrive Status Icons? I'm shure, this would be an important feature for many users.

Henrique
Posts: 2
Joined: 13 Oct 2019 20:41

Re: Is it possible to show OneDrive file status?

Post by Henrique » 14 Oct 2019 20:02

I realy miss that function

tosime
Posts: 2
Joined: 29 May 2020 15:03

Re: Is it possible to show OneDrive file status?

Post by tosime » 27 Jul 2020 07:43

I was looking for a solution and simply jumped to the last entry.
I also need a solution so I don't have to switch between Explorer and XYplorer to know the cloud status of a file or directory.

admin
Site Admin
Posts: 49764
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: Is it possible to show OneDrive file status?

Post by admin » 24 Sep 2020 10:27

Does this issue persist in the current release of Windows 10?
FAQ | XY News RSS | XY Twitter | Stay home! 🎸 Or wear a mask! 😷

Post Reply