Unable to create file or folder in Documents folder: 0x80070781

Page 1 of 2 12 LastLast

  1. Posts : 248
    Windows 10 Pro
       #1

    Unable to create file or folder in Documents folder: 0x80070781


    I am unable to create a file or folder in the Documents folder (C:\Users\...\OneDrive\Documents). "The name of the file cannot be resolved by the system". I am able to create files and folders in the OneDrive folder, just not the Documents subfolder. How can I fix this? Thanks.

    Unable to create file or folder in Documents folder: 0x80070781-delme.png
      My Computer


  2. Posts : 248
    Windows 10 Pro
    Thread Starter
       #2

    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
      My Computer


  3. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #3

    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.
      My Computers


  4. Posts : 248
    Windows 10 Pro
    Thread Starter
       #4

    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.
      My Computer


  5. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #5

    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
      My Computers


  6. Posts : 248
    Windows 10 Pro
    Thread Starter
       #6

    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.
      My Computer


  7. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #7

    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
      My Computer


  8. Posts : 248
    Windows 10 Pro
    Thread Starter
       #8

    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.
      My Computer


  9. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #9

    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
      My Computer


  10. Posts : 248
    Windows 10 Pro
    Thread Starter
       #10

    Try3 said:
    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
    *Shudder*. The last thing I want is to open Pandora's box of OS glitches. I will let that sleeping dog lay. Thanks again.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:35.
Find Us




Windows 10 Forums