All of my .cmd files open with notepad. How can I run it normally? I have already tried to remove its default value (in FileExts) in regedit.
- 1this should be part of superuser .. any way go to control panel -> default programs = > set associations and set .cmd to the program u like..Vishal Sharma– Vishal Sharma2013-09-22 07:50:08 +00:00Commented Sep 22, 2013 at 7:50
- @vishal no, this is not possible, the entry is lockedt0r0X– t0r0X2014-01-13 18:04:38 +00:00Commented Jan 13, 2014 at 18:04
Add a comment |
1 Answer
This is what you should do.
- Take registry backup.
- Now go to registry entry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.cmdand delete entry below it.
PS If the change does not work immediately, you might have to reboot.
3 Comments
t0r0X
Thanks, this solution solved my issue. For
.cmd files I had to delete the .cmd entry, not the .bat one which was originally suggested.foxidrive
In my Windows 8.1 there is no
.cmd entry and the .bat entry may have been correct after all.thanos.a
@Lokesh This didn't work for me even after restarting the system. The registry key has been deleted but the associations was the same. I had to do the change from "Control Panel" -> "Default Programs" as already suggested.