Can't create new file in Documents directory.

Anonymous
2019-05-16T06:08:37+00:00

Hi all,

From some day weeks ago, I strangely found that I can not create new files in my Document directory and some other directories (e.g. Desktop) using some applications. Check this screenshot out.

Here's some further information I can provide:

  • Creating new file (e.g. a text file) or directory from the right mouse button menu in MS File Explorer works fine. This only happens for some applications. E.g. Using python, vim, etc.
  • This only happens for some specific directory and deeper sub-directories. In my case, that refers to the Document directory and its descendants. Once I move a sub directory to another place, e.g., C:\projects, I can create files properly in new place.
  • For an existing file, I do have access to it and can open it for reading or writing. The only problem is to 'create' a new file.
  • Running as administrator doesn't help. Still having this problem.
  • Running in WSL doesn't help. Still having this problem.
  • This problem came to me suddenly some day using Windows 10 1809. I upgraded it to 1903 today and it still remains unsolved, hence I come here to ask.

Anyone got a clue how to solve it? Thanks a lot.

Windows for home | Windows 10 | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} vote
Answer accepted by question author
  1. DaveM121 817.4K Reputation points Independent Advisor
    2019-05-16T06:43:52+00:00

    Hi gwy15

    Most likely this is caused by a security feature in Windows 10 . . .

    Open Windows Defender Security Center

    Go to Virus & threat protection - Virus & threat protection settings

    Scroll down to Controlled folder access

    Temporarily turn off Controlled Folder Access and check to see if you can save (read/write) to those locations

    If so, from there, you can add an application to the list of safe or allowed apps to prevent them from being blocked

    Please do not leave Controlled Folder Access turned off permanently

    3 people found this answer helpful.
    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Vijay A. Verma 104.7K Reputation points Volunteer Moderator
    2019-05-16T06:12:29+00:00

    Hi gwy15

    Greetings! I am Vijay, an Independent Advisor. I am here to work with you on this problem.

    Does it happen only in command mode or does it happen even when you try to create in File Explorer?

    0 comments No comments
  2. Anonymous
    2019-05-16T06:18:00+00:00

    Hi Vijay,

    It doesn't happen in File Explorer, only for some other non-Microsoft softwares, e.g., python creating file (both in interactive command mode and running a script) or Snipaste 'save to' action.

    0 comments No comments
  3. Anonymous
    2019-05-16T07:50:43+00:00

    Hi DaveM121,

    Thanks so much for your advice! It works perfect! LOL

    Have a nice day!

    0 comments No comments