New
#1
This is still a problem for me! It's stopping some programs from running because they can't write some stuff to that folder. Alternatively, is there a way to get programs to direct their attention to my regular documents folder instead of trying to go to the OneDrive version? The situation of having two Documents folders is confusing. I have:
C:\Users\username\Documents
and
C:\Users\username\OneDrive\Documents
I already have full ownership and control of the OneDrive\Documents folder. I see that the 'Read only' box has a square in it. If I try to remove that, I get another error that "the name of the file cannot be resolved by the system".
Win 10 Pro
Version 10.0.17763 Build 17763
What programs are writing to OneDrive\Documents? I've never had that happen. Actually programs I've had don't write to my Documents folder, unless you mean Office programs like Word or Excel. If that's the case, you control where they write files to when you do a File/Save as.
Provide more info and maybe I/we can be of more help.
I think that Dead Space, (a PC game installed via the Steam game platform), tries to write to the Documents folder and crashes when it is unable to do so. I think that LTSpice, a circuit design program, is also trying to write there and crashing when unable to do so. I cannot control where either of these programs are writing. You cannot control Dead Space save game location and LTSpice won't even start because it's trying to do something before the first start. If I create a new user profile, I can start LTSpice and it writes something to that user's documents folder. I am pretty confident that this is what is crashing these programs.
Documents folder should be %userprofile%\Documents, not %onedrive%\Documents (open a Command Prompt and enter set to see these and other environment variables). If those programs are writing to Documents under OneDrive then they have a problem, there is nothing you can do about it, unless you want to get rid of OneDrive? If you do then
See this tutorial: How to Enable or Disable OneDrive Integration in Windows 10
Thanks but for some reason there's no reference to the Document folder when I enter set at a command prompt. Here is the entire output:
Code:ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\username\AppData\Roaming AVR32_HOME=C:\WinAVR-20100110 CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=SYSTEM7 ComSpec=C:\WINDOWS\system32\cmd.exe DriverData=C:\Windows\System32\Drivers\DriverData HOMEDRIVE=C: HOMEPATH=\Users\username LOCALAPPDATA=C:\Users\username\AppData\Local LOGONSERVER=\\SYSTEM7 NUMBER_OF_PROCESSORS=8 OneDrive=C:\Users\username\OneDrive OneDriveConsumer=C:\Users\username\OneDrive OS=Windows_NT Path=C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\WinAVR-20100110\bin;C:\WinAVR-20100110\utils\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\PuTTY\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Users\username\AppData\Local\Microsoft\WindowsApps;g:\Program Files (x86)\Nmap; PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 94 Stepping 3, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=5e03 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PROMPT=$P$G PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules PUBLIC=C:\Users\Public SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\WINDOWS TEMP=C:\Users\username\AppData\Local\Temp TMP=C:\Users\username\AppData\Local\Temp USERDOMAIN=SYSTEM7 USERDOMAIN_ROAMINGPROFILE=SYSTEM7 USERNAME=username USERPROFILE=C:\Users\username windir=C:\WINDOWS
Here is the thing: if I open Windows Explorer and click on the "Documents" shortcut, it takes me to OneDrive/Documents. And I can't write files in that folder which isn't normal. This suggest to me that it's a problem with Windows and not the other two programs (although I'm not happy with how they just crash to desktop).
Edit: Now Eagle, another circuit design program just gave an error that it couldn't access OneDrive/Documents as well. I don't know what it was trying to do there (I just tried to insert a part into my schematic) but further evidence that this is a Windows issue.
Last edited by THX1138; 12 Sep 2019 at 23:03.
Change your user profile user folder for documents to C:\Users\YourUserName\Documents instead
1 Make sure that C:\Users\YourUserName\Documents exists & copy its path for use in step 4 by clicking in a blank area of the File explorer address bar then pessing ctrl-c
2 Open RegEdit [C:\Windows\System32\regedt32.exe] and go to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
3 Double-click on the Personal entry [Personal=Documents], which I believe is currently to C:\Users\YourUserName\OneDrive\Documents
4 In the Value data input box, paste in the path to C:\Users\YourUserName\Documents
5 Close RegEdit
Any application that insists on writing to the user folder without giving you any choice should now be writing to C:\Users\YourUserName\Documents. Test those problem applications.
This does not fix whatever the permissions issues are with C:\Users\YourUserName\OneDrive\Documents, it just sidesteps them.
Denis
Thanks very much. LTSpice now runs and maybe I'll try that game again at some point. As for the permission issue, may I can delete the OneDrive/Documents folder. There's nothing in there I need to keep. It won't delete right now but maybe I can do it from Safemode or something later.
Personally, I'd leave the OneDrive/Documents folder to gather dust.
Since you do not know what causes its odd behaviour, you do not know if there would be any side-effects from deletion & the fact that Windows is fighting you over it means that there might well be side-effects.
Denis