Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

The problem is Windows' well-known Vista-style security dialogs.

The files in the C:\inetpub folder are "protected". So to edit them, the editor program needs to be launched using "admin-mode" (Ctrl+Shift+Enter from Start menu), and then the desired file is to be opened via the editor's File->Open. This works.

But I want to be able to right-click on a file (text file, document, etc.) in the C:\inetpub directory in Windows Explorer and have the associated editor program launch automatically in "admin-mode".

Is this possible?

share|improve this question
2  
You could instead give your user account permission to edit c:\inetpub. Just right-click on inetpub from the root of the C: drive, go to the Security tab, click Edit, and add your user account to the list and give it Full Control. Then you won't need to elevate to edit files in that folder. –  Patches Mar 26 '11 at 6:28
add comment

2 Answers

Hold down SHIFT and RIGHT-CLICK the app (.exe, .bat...) file you want to run. Select Run as Administrator from the context menu

share|improve this answer
    
Unfortunately, thats not what I want to do (run EXE etc.) –  Zabba Mar 29 '11 at 7:54
add comment

All you need to do is right click on the executable file, click properties, select the "compatability tab", and check the box at the bottom that says "run as administrator"

share|improve this answer
    
good god, whoever downvoted this is an idiot. –  TurtleToes Mar 26 '11 at 8:48
    
@Patches answer worked for me. Before you go around calling names, re-read the question. I'm sure that'll clear things up for you. And welcome to SO. –  Zabba Mar 29 '11 at 7:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.