Jump to content

cbox


Add "Run as Administrator" to Any File Type in Windows Vista


Recommended Posts

Posted

Add "Run as Administrator" to Any File Type in Windows Vista

 

Have you ever tried to unzip a file to the Program Files directory in Vista? Youââ¬â¢ll get all sorts of permission denied errors, and generally be unsuccessful. So how do we open up the zipfile as an administrator? For that matter, how do you open any file as administrator?

 

Thereââ¬â¢s a simple registry tweak that will let us specify the action to run as administrator for a file type. Unfortunately youââ¬â¢ll have to make the tweak manually, but weââ¬â¢ll walk you through it.

 

Note: The method explained here is courtesy of jd2066, one of the helpful geeks over on our forum.

 

Manual Registry Tweak

 

Open regedit through the start menu search or run box and then browse down to the following key, substituting ââ¬Å.zipââ¬Â for the file extension that you are looking for. (Note that the find dialog helps here)

 

HKEY_CLASSES_ROOT\.zip

 

http://www.howtogeek.com/wp-content/uploads/2008/03/image47.png

 

Now you want to take note of the Data value for the ââ¬Å(Default)ââ¬Â item. This tells you which application is registered to handle this file type, and also where we need to go in the registry next.

 

For this example, since the data field in this example says ââ¬ÅWinRAR.ZIPââ¬Â weââ¬â¢ll need to browse down to the following registry key. (again, the find dialog helps here)

 

HKEY_CLASSES_ROOT\WinRAR.ZIP\shell\open\command

 

What we want to do is copy the shell\open\command section to shell\runas\command. The easiest way to do that is right-click on ââ¬Åcommandââ¬Â and then choose Export.

 

http://www.howtogeek.com/wp-content/uploads/2008/03/image48.png

 

Now open up the exported registry file in Notepad and change ââ¬Åopenââ¬Â to ââ¬Årunasââ¬Â where indicated below:

 

http://www.howtogeek.com/wp-content/uploads/2008/03/image49.png

 

Double-click on the file to enter the information into the registry. Now youââ¬â¢ll see that the ââ¬Årunasââ¬Â section is identical to the ââ¬Åopenââ¬Â section:

 

http://www.howtogeek.com/wp-content/uploads/2008/03/image50.png

 

And now you can right-click on a file and open it as administrator:

 

http://www.howtogeek.com/wp-content/uploads/2008/03/image51.png

 

Not By Me

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...