Page 1 of 1

OneDrive - Shortcut

Posted: 26 Jan 2023 04:34
by nerdweed
How is the OneDrive shortcut rendered. I don't see it coming on my office laptop where we've a Business OneDrive. It is appended with " - <Company Name>"

Re: OneDrive - Shortcut

Posted: 26 Jan 2023 08:58
by admin
By shortcut you mean the special folder? What do you get, no OneDrive folder at all?

Re: OneDrive - Shortcut

Posted: 27 Jan 2023 04:42
by nerdweed
Yes, I meant the shortcut in tree. Currently, I don't get to the see the shortcut in the tree unless I explicitly navigate to that folder

Re: OneDrive - Shortcut

Posted: 27 Jan 2023 08:31
by admin
I'm currently using two methods:

1) SHGetKnownFolderPath with {A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}

Code: Select all

echo get("knownfolderpath", "{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}");  //onedrive path
Does this return anything?:

Code: Select all

echo get("knownfolderpath", "{24D89E24-2F19-4534-9DDE-6A6671FBB8FE}"); //FOLDERID_SkyDriveDocuments (?)
2) HKEY_CURRENT_USER\Software\Microsoft\OneDrive

But in your case the path could also be hidden in either of these, could you check that for me?
HKEY_CURRENT_USER\Software\Microsoft\OneDrive\Accounts
HKEY_CURRENT_USER\Software\Microsoft\OneDrive\Accounts\Business

Re: OneDrive - Shortcut

Posted: 30 Jan 2023 05:52
by nerdweed
The first knownfolder returns path to the personal onedrive which is an empty folder and hence the second one doesn't return anything.

In the registry, there are two folders under accounts, Personal and Business1 and the UserFolder key inside these folders points to the onedrive location for Personal and Business respectively.

Not sure if the trailing 1 in the Business1 is problematic.

Re: OneDrive - Shortcut

Posted: 30 Jan 2023 08:37
by admin
Ok, thanks!

Re: OneDrive - Shortcut

Posted: 03 Feb 2023 19:55
by GreetingsFromPoland
hi! i was checking the breadcrumb bar dropdown today and noticed i have "OneDrive" listed there (section above the my drives, right above my user name). i ran the 2 echo commands listed above and they are both blank. i do not have nor have ever had OneDrive installed/active (always removed after fresh installs).

since it isn't present on my system and the folder doesn't exist, shouldn't it not be shown in the dropdown list ?

Re: OneDrive - Shortcut

Posted: 04 Feb 2023 11:27
by admin
Agreed. Should be better in the next beta.