Write file to root

ForensMath
ForensMath used Ask the Experts™
on
My simple question is, under Windows 7 how can I enable modification & adding of files to the root C:\ ?

History: I've always maintained a file C:\notes.txt which I use for all sorts of reminders etc & maintain with my standard text editor. When I first obtained my current Window 7 machine, I don't recall any particular trouble continuing the practice though I may have had to explicitly set permissions and/or sharing.

A few months ago I restored the machine, but never figured out how to enable root-writing.

Today I restored it again (for various reasons) and am still at a very early stage:
- None of my data copied in yet
- No software installed except virus and backup
- Only one user, Charles, which is of course an Administrator.

I try saving a test file from Notepad to C:\foo.txt, but "A required privilege is not help by the client."

I then set Sharing for C:, full access for everyone. Same result.

Thanks for help,

Charles
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
LeeTutorretired
Top Expert 2009

Commented:
If you right click the shortcut for Notepad, then select "Run as Administrator", you should then be able to save your text file to the root directory.  The reason this is normally prohibited is that the root is a common place for hiding malware that gets downloaded to your pc, and so User Account Control inhibits easy writing to the root.
Top Expert 2016

Commented:
or you can change permissions and allow authenticated users to write to this folder, but it is not recommended.
Do not confuse share and NTFS permissions.

Try this:

Right click on Local Disk (C:) -> Properties -> Security -> Permissions tab -> Change Permissions -> Add... (add your user or security group) -> Check the Allow box for Create files / write data

Apply to: This folder only

You will get a a bunch of Access denied errors but keep clicking continue.
Distinguished Expert 2018
Commented:
Simple question, simple answer: http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/Windows_7/Q_25059444.html#a26403263 (I answered it before... people still keep forgetting integrity levels)
LeeTutorretired
Top Expert 2009

Commented:
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
Distinguished Expert 2018

Commented:
I object.
I gave a solution that anyone can approve to be right.
I object as well.

My solution was tested and works.
Distinguished Expert 2018

Commented:
Hi motnahp00, please note that your sol. only works on xp or on win7 without UAC on.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial