So is C: root unavailable per default?

Page 1 of 2 12 LastLast

  1. Posts : 118
    W10Pro x 4
       #1

    So is C: root unavailable per default?


    I just came across an error regarding use rights in the root of C:, I can not place files there. I can create a folder and place files inside the folder, but not in root.

    Is this to be expected?

    I got error 0x80070522 when trying and found this older thread about it: Unable to change Admin Settings - Windows 10 Forums

    The post is answered by referring to the tutorial of Take Ownership, but I do not think that is relevant to this case.
      My Computers


  2. Posts : 118
    W10Pro x 4
    Thread Starter
       #2

    Can anyone verify this?
      My Computers


  3. Posts : 5,478
    2004
       #3

    That is completely normal. The GUI will let you make a folder but not a file. Any program you run as a normal user (even if that user is part of the administrators group) will not let you save there.

    However if you open an administrator command prompt and type
    Code:
    echo "whatever" > C:\test.txt
    you will find it has created a file test.txt at root of C containing the word "whatever".

    Similarly if you open notepad or many other programs as Administrator (right click on the program, run as administrator) it will let you save in root of C.

    What are you trying to do exactly? You can run a program as administrator to do it but otherwise I can't give a sensible suggestion unless you say what the objective is. There are also other issues with running things as administrator so don't take that as a default answer.

    Definitely don't take ownership of the whole of the C drive whatever you do though. That would cause no-end of problems.
      My Computer


  4. Posts : 7,257
    Windows 10 Pro 64-bit
       #4

    What files where you trying to place there?
      My Computers


  5. Posts : 118
    W10Pro x 4
    Thread Starter
       #5

    It is my own desktop and on my 7 machine I had a couple of cmd scripts there that ran a robocopy every system start... Just putting them back to the same location according to my own system setup documentation.
    It is not a corp comp.

    Thanks for the clarification.
      My Computers


  6. Posts : 5,478
    2004
       #6

    I'd recommend you run any robocopy job as admin anyway (whether you want to copy to root of C is up to you).

    Just tick the "Run with highest privileges" box on task scheduler (assuming you are starting it it like that).
      My Computer


  7. Posts : 118
    W10Pro x 4
    Thread Starter
       #7

    No, not starting like that. Shortcut to Programs/Startup folder..

    Running CMD batch's via Task Scheduler has in my experience not always worked very well, often error with exit messages, perhaps it works better in 10, but have not tried it.
      My Computers


  8. Posts : 1,249
    Windows 10 Pro
       #8

    Best practice with hard drives has always been to put files within folders and not directly in the root of the drive. The only files that should be in the root of the drive are system files that must be there. You need a compelling reason to depart from this principle and I don't see it.
      My Computer


  9. Posts : 118
    W10Pro x 4
    Thread Starter
       #9

    Compelling reason? On my own local desktop?

    Just because I want it that way, I consider it tidy, in my opinion. I do not apply "best practice" on my own desktop.
      My Computers


  10. Posts : 5,478
    2004
       #10

    Coram Daes said:
    Running CMD batch's via Task Scheduler has in my experience not always worked very well, often error with exit messages, perhaps it works better in 10, but have not tried it.
    I can't say as I've always used task scheduler since 7.

    In any case without changing permissions you'll need to get the thing to run as Admin. I don't think you can do that easily any more using Startup folder (but you could try this).

    Coram Daes said:
    I do not apply "best practice" on my own desktop.
    You could take ownership of the whole C drive but it would most likely cause problems. This isn't a moral objection (you can do what you want) only that some permissions are inherited and some explicit and if you change the root to have explicit permissions you'll overwrite what was there before (as explicit permissions always override inherited) and you'll end up with your permissions being wrong and no way to reset them as MS doesn't say what they should be in the first place anyway.

    You could do it but it might cause you issues later on to the extent you have to re-install.
      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 23:48.
Find Us




Windows 10 Forums