IconOverlaysOneDrive=3 doesn't work

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
huouer
Junior Member
Junior Member
Posts: 16
Joined: 2022-02-13, 22:41 UTC

IconOverlaysOneDrive=3 doesn't work

Post by *huouer »

Version =10.51RC3
OS = Win10 21H2
Setting:
IconsOnNet=1
IconOverlays=1
IconOverlaysOneDrive=3

Only IconOverlaysOneDrive=1 works. Neither 2 nor 3 works. Checkmark icons never present.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: IconOverlaysOneDrive=3 doesn't work

Post by *ghisler(Author) »

Do you use the OneDrive option "Files on demand"? It's at the bottom of the first tab.
If not, then IconOverlaysOneDrive=3 is ignored, checkmark icons will not be shown.
Also checkmark icons will now only be shown in the special OneDrive folder and its subfolders, usually c:\users\yourusername\OneDrive
Author of Total Commander
https://www.ghisler.com
huouer
Junior Member
Junior Member
Posts: 16
Joined: 2022-02-13, 22:41 UTC

Re: IconOverlaysOneDrive=3 doesn't work

Post by *huouer »

Hi Ghisler, “Files on demand” is being used. I also checked the special OneDrive folder. But my OneDrive account is a business account and the folder name is c:\users\myusername\OneDrive - company name
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: IconOverlaysOneDrive=3 doesn't work

Post by *ghisler(Author) »

Currently only the personal OneDrive is supported.

Please do the following:
Run cmd.exe
Type the command
set
and press ENTER.
Is there any entry which points to your OneDrive for Business folder? For the personal OneDrive folder, there is a variable named OneDrive.
Author of Total Commander
https://www.ghisler.com
huouer
Junior Member
Junior Member
Posts: 16
Joined: 2022-02-13, 22:41 UTC

Re: IconOverlaysOneDrive=3 doesn't work

Post by *huouer »

ghisler(Author) wrote: 2022-08-29, 10:55 UTC Currently only the personal OneDrive is supported.

Please do the following:
Run cmd.exe
Type the command
set
and press ENTER.
Is there any entry which points to your OneDrive for Business folder? For the personal OneDrive folder, there is a variable named OneDrive.
Yes, there are two entries pointing to my OneDrive for Business folder.
  • OneDrive=C:\Users\myusername\OneDrive - mycompanyname
    OneDriveCommercial=C:\Users\myusername\OneDrive - mycompanyname
I am looking forward to the feature to support OneDrive for Business soon.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: IconOverlaysOneDrive=3 doesn't work

Post by *ghisler(Author) »

Thanks, I will add it. Could you please also open regedit.exe and go to
HKEY_CURRENT_USER\Software\Microsoft\OneDrive\Accounts
Is there a subkey named "Business1" or similar? And if yes, does it contain a field LastKnownCloudFilesEnabled?

I ask because TC looks in subkey "Personal" for "LastKnownCloudFilesEnabled". If this field is present and zero, then TC does not show the green overlay icons even in the OneDrive folder.

I guess that there must be something similar for OneDrive for Business.

Btw, OneDrive for Business seems to support multiple accounts, so using the registry value to look up all of them should be better.
Please check whether the key
HKEY_CURRENT_USER\Software\Microsoft\OneDrive\Accounts\Business1
contains a value named UserFolder, that's what the OneDrive personal account uses.
Author of Total Commander
https://www.ghisler.com
huouer
Junior Member
Junior Member
Posts: 16
Joined: 2022-02-13, 22:41 UTC

Re: IconOverlaysOneDrive=3 doesn't work

Post by *huouer »

ghisler(Author) wrote: 2022-08-30, 08:00 UTC Thanks, I will add it. Could you please also open regedit.exe and go to
HKEY_CURRENT_USER\Software\Microsoft\OneDrive\Accounts
Is there a subkey named "Business1" or similar? And if yes, does it contain a field LastKnownCloudFilesEnabled?

I ask because TC looks in subkey "Personal" for "LastKnownCloudFilesEnabled". If this field is present and zero, then TC does not show the green overlay icons even in the OneDrive folder.

I guess that there must be something similar for OneDrive for Business.

Btw, OneDrive for Business seems to support multiple accounts, so using the registry value to look up all of them should be better.
Please check whether the key
HKEY_CURRENT_USER\Software\Microsoft\OneDrive\Accounts\Business1
contains a value named UserFolder, that's what the OneDrive personal account uses.
Great news, Ghisler.
I have two business accounts. I can see two subkeys, "Business1" and "Business2" Both contain a field LastKnownCloudFilesEnabled with value of 1.
The key HKEY_CURRENT_USER\Software\Microsoft\OneDrive\Accounts\Business1 contains a value named UserFolder = C:\Users\myusername\OneDrive - mycompanyname
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: IconOverlaysOneDrive=3 doesn't work

Post by *ghisler(Author) »

Thanks for the info! I have just sent you a link to a private beta version to your forum e-mail address. The feature is currently experimental, you need to enable it as described in the mail:
wincmd.ini
[Configuration]
IconOverlaysOneDrive=7
Please reply as soon as possible!
Author of Total Commander
https://www.ghisler.com
huouer
Junior Member
Junior Member
Posts: 16
Joined: 2022-02-13, 22:41 UTC

Re: IconOverlaysOneDrive=3 doesn't work

Post by *huouer »

ghisler(Author) wrote: 2022-08-31, 09:11 UTC Thanks for the info! I have just sent you a link to a private beta version to your forum e-mail address. The feature is currently experimental, you need to enable it as described in the mail:
wincmd.ini
[Configuration]
IconOverlaysOneDrive=7
Please reply as soon as possible!
Fantastic! The beta version is working perfectly well for both of my OneDrive for Business accounts on my computer.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: IconOverlaysOneDrive=3 doesn't work

Post by *ghisler(Author) »

Great, thanks for the quick feedback!
Author of Total Commander
https://www.ghisler.com
Erik-DJ
Junior Member
Junior Member
Posts: 39
Joined: 2007-09-15, 14:53 UTC
Location: Noord-Brabant, The Netherlands

Re: IconOverlaysOneDrive=3 doesn't work

Post by *Erik-DJ »

Thanks for the OneDrive overlay icon now also working with 'OneDrive for Business', using IconOverlaysOneDrive=7 (4+2+1). The green overlay icon is nice when TC is in the light theme/mode, but with a dark background the green icon is a bit rugged. See link below. Would it be possible to set an own (by user) overlay icon or could you make a less rugged icon when using a dark background for the file panel?

https://postimg.cc/QFMfP6ck

Also, the green overlay icon is shown on the first line of the panel (..)(go to previous directory). That's a little strange.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: IconOverlaysOneDrive=3 doesn't work

Post by *ghisler(Author) »

You could create an external icon library, e.g. via iclview plugin, modify the green icon, and then use that via IconLib= entry in the wincmd.ini.
Author of Total Commander
https://www.ghisler.com
tcuser2018
Junior Member
Junior Member
Posts: 5
Joined: 2018-03-25, 21:33 UTC

Re: IconOverlaysOneDrive=3 doesn't work

Post by *tcuser2018 »

I have a Personal (HKCR..OneDrive\Accounts\Personal) and Business account (HKCR..OneDrive\Accounts\Business1) on my computer but the Icon Overlays are not appearing for my Business account. I do see cloud icons for Personal OneDrive files not downloaded.

My setting WINCMD.INI - running

Code: Select all

IconOverlays=1
IconsSpecialFolders=1
IconOverlaysOneDrive=7
Is there something else I need to check?

Will this feature only show OneDrive file status visually or is there a way to use this to filter OneDrive files that are physically downloaded to my PC?

Thanks.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: IconOverlaysOneDrive=3 doesn't work

Post by *ghisler(Author) »

This should work, but you need Total Commander 10.52 - it will not work in older versions.
Will this feature only show OneDrive file status visually or is there a way to use this to filter OneDrive files that are physically downloaded to my PC?
Only visually.
Author of Total Commander
https://www.ghisler.com
tcuser2018
Junior Member
Junior Member
Posts: 5
Joined: 2018-03-25, 21:33 UTC

Re: IconOverlaysOneDrive=3 doesn't work

Post by *tcuser2018 »

Thank you - after some checking, it does show the Green check on folders in TC 10.52 that have "Always keep on device" checked in OneDrive.
Post Reply