Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


I have an .msc file associated to a command of a personalized contextmeni item , which is stored in a reg value as a context menu option?.

This is the registry script:

Windows Registry Editor Version 5.00

@="Administrador de discos"



When I click on the contexontextmenu item, absolutelly nothing happens.

enter image description here


How to run an MSC file from registry?

share|improve this question
MSC files are not regedit files; they are Microsoft Management Console Snap-in Control Files. This will not ever work. – krowe Sep 22 '13 at 4:37
It's not clear what you're asking. Do you want something to happen when you right-click the MSC? Do you want the MSC to be an option in the context menu when you right-click another type of file, and if so, what type(s) of file(s)? – BillP3rd Sep 22 '13 at 4:47
@krowe It has nothing to do to be a file "Reg" or not, I think you haven't understande me, my english is not very good, please see my update, thanks for comment, – ElektroStudios Sep 22 '13 at 4:58
@BillP3rd yes, the second option that you have said is more or less what I'm trying to do, the option will be at desktop background contextmenu, I've created the option, the only problem is the MSC file will not start like an exe file starts and I don't know what I need to do to fix the problem about trying to run an MSC file from a registry command value, thanks for comment! – ElektroStudios Sep 22 '13 at 4:59
So to be clear, you'd like the option to start DEVMGMT.MSC to appear as an option on the DESKTOP context menu. Is that correct? That's very straightforward, if so. – BillP3rd Sep 22 '13 at 5:05
up vote 2 down vote accepted

The problem is that you need to run the *.MSC files as arguments to mmc like this:

 C:\Users\me>mmc C:\Windows\system32\devmgmt.msc

This doesn't work in your registry entries because they are not executables. Here is the updated regedit file:

Windows Registry Editor Version 5.00

@="Administrador de discos"

@="mmc C:\Windows\system32\devmgmt.msc"
share|improve this answer
that's it, I didn't knew mmc can accept arguments, thankyou so much! – ElektroStudios Sep 22 '13 at 5:14
@krowe - Beat me to the answer. +1 for you! – BillP3rd Sep 22 '13 at 5:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .