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.

How I can run a MSC Windows file which is stored in a reg value as a context menu option?

When I click on the option, absolutelly nothing happens.

PS: I don't want to trick it starting CMD window or WScript to run the file.

Windows Registry Editor Version 5.00

@="Administrador de discos"



To understand my question...

enter image description here

I've made many contextmenus options with subcommands, the registry script I shown before is an option to start an msc file "C:\Windows\system32\devmgmt.msc" like you can do with all type of executable files, the problem is the msc will not start as an exe, nothing happens when I click my option, and I don't know why.

The question: How to run a 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

1 Answer 1

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

Your Answer


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.