Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How do I edit a file in Program Files tree?

29 Aug 2011   #1
StupidUser

Microsoft Windows 7 Professional 64-bit 7601 Multiprocessor Free Service Pack 1
 
 
How do I edit a file in Program Files tree?

How do I edit a file in the ProgramFiles(x86) directory?

There is a .xml configuration file which is supposed to be editable to configure the app the way I want it (that's why it's called configuration file, MS!). Here's the file tree: C:\Program Files (x86)\TeXnicCenter\packages\math.xml.

I can make changes in Notepad, but cannot save anything back to this directory. I am the sole user and administrator of my system (see the pic?), so I should be allowed to do whatever the heck I wanna do! It is a Win7 Ultimate (x64).

How do I edit this file? Thanks

Question 2 (this one is really rhetorical-venting): Why-oh-why would MS keep me from editing my files in my directories on my personal computer? It's mine! (Did you notice that pattern?)

P.S. - I have no idea what the correct subforum for this question is (since I never expected to have to ask such an inane question). I'm sorry if it's in the wrong place (feel free to move it and scold me appropriately ).




Attached Images
How do I edit a file in Program Files tree?-capture.png 
My System SpecsSystem Spec
.
29 Aug 2011   #2
DeaconFrost

Windows 7 Ultimate x64 SP1
 
 

You forgot an option in your poll for "No, and I'm glad it is this way, especially since other major OSes have been this well protected for years".

For the record, I have no trouble going into my Program Files directories and making changes to files. I just have no need to do so. Sounds like you have some permissions issues, or your UAC settings moved to be too strict.
My System SpecsSystem Spec
29 Aug 2011   #3
logicearth

Windows 10 Pro (x64)
 
 

Drag the file in question to your desktop, open it, edit it, save it. Then drag it back to its previous location. Done.
My System SpecsSystem Spec
.

29 Aug 2011   #4
arkhi

Windows 2000 5.0 Build 2195
 
 

math.xml is located on a protected directory (Program Files x86). When you double-click to open it, it opens in an un-elevated Notepad (user mode), that's why you can't save it back.

You can either do what logicearth said, or simply right-click Notepad and run as admin, and then Ctrl+O to open "C:\Program Files (x86)\TeXnicCenter\packages\math.xml."

Don't worry, everything there is still editable. Your system is just making the right precautions through UAC (don't disable UAC <_<).
My System SpecsSystem Spec
29 Aug 2011   #5
StupidUser

Microsoft Windows 7 Professional 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by DeaconFrost View Post
You forgot an option in your poll for "No, and I'm glad it is this way, especially since other major OSes have been this well protected for years"...
I didn't think anyone would actually give that answer. (Maybe I was a little frustrated - for a change).

Just out of curiosity, how is it that other OSes have been this well protected but still let you change your own configuration files without frustrating me half as much?

Quote   Quote: Originally Posted by arkhi View Post
...You can ...simply right-click Notepad and run as admin, and then Ctrl+O to open "C:\Program Files (x86)\TeXnicCenter\packages\math.xml."...
This solution works best for me. Thanks every1.
My System SpecsSystem Spec
29 Aug 2011   #6
DeaconFrost

Windows 7 Ultimate x64 SP1
 
 

If you try using Linux or OSX, you get prompted far more than Windows 7 does....and the often require entering your password, not just right-clicking the file or application.
My System SpecsSystem Spec
29 Aug 2011   #7
StupidUser

Microsoft Windows 7 Professional 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by DeaconFrost View Post
If you try using Linux or OSX, you get prompted far more than Windows 7 does....and the often require entering your password, not just right-clicking the file or application.
Really? Years ago when I used to manage a - I'm embarrassed to admit - Dec Vax system I never had those problems.
My System SpecsSystem Spec
29 Aug 2011   #8
logicearth

Windows 10 Pro (x64)
 
 

Unless you run under the "root" account on Unix/Linux, you have to use either su or sudo to edit certain configuration details in system directories (akin to Program Files). However, on Unix/Linux systems most programs store their configuration in a users home directory (/home/[username]). Of course, not all programs do this on Unix/Linux or on Windows, like your program for example.

The only reason you did not have these problems on previous versions of Windows (Windows XP) because you ran under administrative power. On Windows Vista and 7 you do not have Administrative power until you elevate an application. That is what the UAC prompt does, it elevates you to administrative power, on demand. This allows you to do administrative tasks while not having your web browser or any internet connect program have access to that level of power, which is bad.

Btw...why are you comparing a system (DEC VEX) from the early 1970-1980s to a modern system? At that point in time, the internet barely existed as it does now. And Security was less of an issue, pioneer days.
My System SpecsSystem Spec
29 Aug 2011   #9
StupidUser

Microsoft Windows 7 Professional 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

I get what you are saying. I just have to get used to the new type of security.

I'm not so much comparing Windows to Vax as using it as my point of reference. It's the only big system I ever administrated. And yes, we did have the internet back then (80s and 90s) and yes, there were security threats waaaay back then.
My System SpecsSystem Spec
Reply

 How do I edit a file in Program Files tree?




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Hide all of a certain file type in a folder tree
Hey there. I have a media library with, surprisingly enough, media in it! Videos to be exact. Each of the sub-folders have in them videos as well as .nfo files for displaying data awesomeness in the likes of XBMC. However, I do not like the way it makes my folders look when I browse to them in...
Customization
How to automatically hide all of a certain file type in a folder tree?
I ask because I have just noticed that when I open WORD files that the newly generated WBK-files are visible despite me using the "attrib +h *.nfo /s" command previously. I foolishly hoped that also all future '*.wbk's would automatically be hidden too. Is there anything that I can do about it ...
Customization
Have admin rights but can't create new file in Program Files (x86)
I'm trying to solve a problem with the Aspell spell-checker for Notepad++ by using the steps described at this link... SourceForge.net: Notepad++: Aspell files - en.pws , en.prepl However, when I right-click inside that folder to create a new text file, the only option in the "New" context menu...
General Discussion
edit program files as Standard User?
Win 7 Helpers, I would like to know how to configure Win 7 ownership/permissions so I can modify files in my C:\Program Files folder when logged in as Standard User. I can do this when logged in as administrator (after configuring ownership/permissions,see below) but when I try to edit>save when...
General Discussion
Could not load file or assembly from Program files - W7
I installed my .Net application in to the Program files on Windows 7 machine. It was working perfectly. One week later i installed(now i have changed my certificate file key and signed my application. So that all assembly public key token value is different now) my application. When i tried to run...
Software
Zip Files in Explorer Tree
How do I get rid of zip files acting like folders in the explorer tree I managed in vista help appreciated barney
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 05:22.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App