OneDrive - Shortcut

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
nerdweed
Posts: 648
Joined: 25 Feb 2012 07:47

OneDrive - Shortcut

Post 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>"

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: OneDrive - Shortcut

Post by admin »

By shortcut you mean the special folder? What do you get, no OneDrive folder at all?

nerdweed
Posts: 648
Joined: 25 Feb 2012 07:47

Re: OneDrive - Shortcut

Post 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

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: OneDrive - Shortcut

Post 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

nerdweed
Posts: 648
Joined: 25 Feb 2012 07:47

Re: OneDrive - Shortcut

Post 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.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: OneDrive - Shortcut

Post by admin »

Ok, thanks!

GreetingsFromPoland
Posts: 215
Joined: 29 Sep 2022 14:20

Re: OneDrive - Shortcut

Post 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 ?

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: OneDrive - Shortcut

Post by admin »

Agreed. Should be better in the next beta.

Post Reply