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: Force notepad to run as administrator

14 Dec 2011   #11

Windows 7 Home Premium 64bit
 
 

I could understand if it would pop up a UAC box saying "You will need to be an administrator to complete this action". And as for clicking 'Advanced' in the properties and then 'run as administrator', that works for shortcuts, but not the actual application. I would like to be able to double click on a file and have it come up with the UAC box asking me if I want to continue. I am just about ready to turn off UAC. This is EXTREMELY annoying and time wasting. I should be able to click on the .ini file and have it ask me if I want to run this program. But no. I'm already busy enough, but I have to take extra time to call up Notepad as an administrator with no file loaded, File -> Open Navigate to the file and then open it. If it were just one or two files a day, it would be fine. But I do it 30 or 40 times a day. That tends to add up. Guess I'll just have to turn off UAC. Dang it!!!!

My System SpecsSystem Spec
.

14 Dec 2011   #12

Windows 7 Ultimate x64 SP1
 
 

Did you even read my whole post?
My System SpecsSystem Spec
14 Dec 2011   #13

Windows 7 Home Premium 64bit
 
 

Yes, I did. That's why I said it should present the UAC query box. I'm not asking for it to run as an administrator without asking permission. That would be rather insane. I. JUST. DON'T. HAVE. THE. TIME. TO. GO. THROUGH. A. RIGAMAROLE. 30. TIMES. A. DAY. Proper administrator thinking should be, nothing should be able to change possible system files without asking permission from the administrator. That's what I'm asking. For it to pop up the UAC query when I click on one of those files that will be open with Notepad. And then open Notepad as administrator when I click Yes.
My System SpecsSystem Spec
.


25 Dec 2011   #14

Windows 7 Home Premium 64bit
 
 

No response, eh? Well, took me a day or so of my free time, but rather than turn off UAC, I decided I'd write a little notepad replacement that would require an administrator to run. Took me a day and a half to write it and get the bugs out, but at least now I can double click on an ini file and have it pop the UAC box. When I click yes it opens the file in the app I wrote. Even tells you if the file is read-only.

Pretty sad when users have to write the code that Microsoft should have written in the first place. But I guess they have better things to do. Like writing software that needs to be updated every few days.
My System SpecsSystem Spec
01 May 2012   #15

windows 7 x64-bit
 
 

select notepad shortcut, rightclick on it and you should see "run as adminstrator" BUT before tempting to click it hold the "shift" button then click on "run as adminstrator" now you can able to run notepad as admin

Bala
My System SpecsSystem Spec
01 May 2012   #16

Windows 7 Home Premium 64bit
 
 

This still doesn't solve the problem. I don't need the shortcut. I need inotepad to open as an administrator, after popping the UAC prompt, when I double click on an .ini file in my Program Files folder with the file I double clicked on loaded so I can alter it and then save it there.

I did what you said and then I went to my program files folder and reset the default file to open .ini files to notepad. Then while pressing shift, double clicked on an .ini file. It opened the file in notepad without any administrator prompt and wouldn't let me save there. Access Denied. Which is good since no UAC prompt came up. Even tried it without pressing shift; same result.

But no matter, I'm still able to do what I need to do with the program I wrote. Just seems a shame that customers have to write code that Microshaft should have written in the first place.
My System SpecsSystem Spec
02 May 2012   #17

Windows 7 Home Premium 64 bit at home and Windows 7 professional at school.
 
 

Quote   Quote: Originally Posted by carloak View Post
This still doesn't solve the problem. I don't need the shortcut. I need inotepad to open as an administrator, after popping the UAC prompt, when I double click on an .ini file in my Program Files folder with the file I double clicked on loaded so I can alter it and then save it there.

I did what you said and then I went to my program files folder and reset the default file to open .ini files to notepad. Then while pressing shift, double clicked on an .ini file. It opened the file in notepad without any administrator prompt and wouldn't let me save there. Access Denied. Which is good since no UAC prompt came up. Even tried it without pressing shift; same result.

But no matter, I'm still able to do what I need to do with the program I wrote. Just seems a shame that customers have to write code that Microshaft should have written in the first place.
I think you need to go cool off. Microsoft has done people many favors because 90% of people that use PC's ARE not experienced with Local drives and other important files that should not be toyed with. THAT is why all this code that prevents access to certain files is in place. If you edit and/or delete a windows file by accident BYE BYE OS. If you are so worried about this go ahead and make your own OS.
My System SpecsSystem Spec
02 May 2012   #18

Windows 7 Home Premium 64bit
 
 

And that is why it should pop the UAC. Not only for the user's protection, but for Microsofts as well. If you have seen that UAC box with the warning and still choose to go ahead, well, you were warned. As for making my own OS, why should I do that when I've already paid Microsoft for one that is supposed to be licensed to me and give me, the owner, access to the places I need?

And I'm not wanting to alter files in the Windows directory. Just the Program Files Directory. That may make a program not work right, but it won't affect the OS.
My System SpecsSystem Spec
04 May 2012   #19

Windows 7 Home Premium 64 bit at home and Windows 7 professional at school.
 
 

True but playing around in the program files directory can also cause program corruption and ULTIMATELY MAY make a virus I don't know but it's possible. I have seen it happen before. But if you don't want a program just uninstall it simple. Why are you playing around in there anyway is another good question.

As for the access denied you need to change the ownership of the item to you by right clicking: Properties-Security-Edit (OR Advanced if you want to change other settings while your here) add your user name by pressing add and then apply and close the window. Change your user settings to full control and you will not have Access Denied no more
My System SpecsSystem Spec
04 May 2012   #20

Windows 7 Home Premium 64bit
 
 

Thank you. Now that was helpful. Didn't even think of changing the security settings. Still need to change the settings on about 30 files, but that's a very small price to pay in this instance.

As to why we need to edit these area, that is proprietary information concerning software that was written in-house.

Anyway, thanks again. Problem solved.
My System SpecsSystem Spec
Reply

 Force notepad to run as administrator





Thread Tools




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 03:49 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33