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.

There is a file context.xml in the path :

C:\Program Files\Apache Software Foundation\Apache Tomcat 7.0.22\conf\context.xml

I have to edit this file. But i am unable to do so.When i try to save the edits (ctrl+s) , I get a message Access Denied . How can i open these type of files with admin privilege ?

To run any type of software that needs admin privilege,i just click run as administrator. What do i do in this case ?

NOTE : I am the admin on my computer

NOTE : Answer me in context to Windows 7

share|improve this question
    
Are you sure it's not read only (look in properties)? Also, who has ownership of the file? –  Dave Rook Jul 16 '12 at 15:08
    
I don't know how to do this. But what I do is open the editor as administrator. –  criziot Jul 16 '12 at 15:08
    
@criziot this is it ! –  Suhail Gupta Jul 16 '12 at 15:12
    
As it works for you I posted it as an answer. –  criziot Jul 16 '12 at 15:23
add comment

2 Answers 2

up vote 4 down vote accepted

I don't know how to do that directly. But, as a workaround, you can open you editor with admin priviledges (with run as administrator) and then open the file you want to edit from the editor.

share|improve this answer
    
AFAIK there is no other way. You can not start an application associated with a file with admin permissions directly. –  Robert Jul 16 '12 at 15:24
    
@Robert I also think that's true. But as I'm not a Windows user I couldn't say it for sure. Thanks. –  criziot Jul 16 '12 at 15:27
add comment

Hold down Shift and right click on the file you want to open and then press Run as Admin

share|improve this answer
    
i don't see run as admin option –  Suhail Gupta Jul 16 '12 at 17:26
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.