OneDrive
Connect to OneDrive without setting up OneDrive
Side effect
- some characters are displayed incorrectly:
- ^0 = & (Country ^0 Folk.m3u)
- ^1 = % (e.g. Vol. 1 100^1 Acid Jazz^J Vol. 1)
- ^J = , (e.g. 100^1 Acid Jazz^J Vol. 1)
- …
- you can try to correct them, but you'll see they re-appear in the same way
Connect to OneDrive using WinSCP
https://winscp.net/eng/docs/guide_microsoft_onedrive
Suspend / Resume OneDrive
OneDrive can be very expensive on bandwidth, so it's good to suspend it when you'll watch movies online.
Download & unpack the
!PsTools.
Then simply issue pssuspend <process name> and the process is suspended. For OneDrive, the process name is onedrive (sometimes, life can be simple).
C:\Users>e:\tools\pstools\pssuspend onedrive
PsSuspend v1.07 - Process Suspender
Copyright (C) 2001-2016 Mark Russinovich
Sysinternals
Process onedrive suspended.
Resuming is done by simply adding the -r switch:
C:\Users>e:\tools\pstools\pssuspend -r onedrive
PsSuspend v1.07 - Process Suspender
Copyright (C) 2001-2016 Mark Russinovich
Sysinternals
Process onedrive resumed.
Toggle command to suspend/resume OneDrive
C:\tools\PsTools\PsList -d onedrive|find/i "suspend" && C:\tools\PsTools\PsSuspend -r onedrive || C:\tools\PsTools\PsSuspend onedrive
Using the /shutdown switch of the OneDrive executable
C:\Users>%LOCALAPPDATA%\Microsoft\OneDrive\OneDrive.exe /shutdown
And you launch your
MsOneDrive sync again by simply calling the OneDrive executable without switches:
C:\Users>%LOCALAPPDATA%\Microsoft\OneDrive\OneDrive.exe
Reset OneDrive
Issue the following command:
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset
Correct OneDrive statuses
What I mean, is: white circles with green check => green circles with white check:
- move items that refuse the 'always keep on this device' setting to a non OneDrive location, wait for OneDrive to be in sync again, then move the items back
- look for empty folders and remove them
Documents displayed as OneDrive
When you link Documents to OneDrive, Documents is renamed as OneDrive. If you want it to display as Documents, please do the following:
solution:
How do I restore the localized name for documents folder (Windows 10)? - Super User
- go to Documents in the File Explorer
- add \desktop.ini in the address bar and press Enter: a text file is opened
- add the following line:
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21770
Save and close the file, and restart!