Force notepad to run as administrator

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 7
    Windows 7 Home Premium 64bit
       #11

    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 Computer


  2. Posts : 18,404
    Windows 7 Ultimate x64 SP1
       #12

    Did you even read my whole post?
      My Computer


  3. Posts : 7
    Windows 7 Home Premium 64bit
       #13

    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 Computer


  4. Posts : 7
    Windows 7 Home Premium 64bit
       #14

    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 Computer


  5. Posts : 1
    windows 7 x64-bit
       #15

    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 Computer


  6. Posts : 7
    Windows 7 Home Premium 64bit
       #16

    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 Computer


  7. Posts : 41
    Windows 7 Home Premium 64 bit at home and Windows 7 professional at school.
       #17

    carloak said:
    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 Computer


  8. Posts : 7
    Windows 7 Home Premium 64bit
       #18

    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 Computer


  9. Posts : 41
    Windows 7 Home Premium 64 bit at home and Windows 7 professional at school.
       #19

    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 Computer


  10. Posts : 7
    Windows 7 Home Premium 64bit
       #20

    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 Computer


 
Page 2 of 3 FirstFirst 123 LastLast

  Related Discussions
Our Sites
Site Links
About 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 10:15.
Find Us