Search code examples
internet-explorercmduri-scheme

Cannot execute cmd.exe using custom URI scheme on IE


I'm trying to implement a custom URI scheme using HKCU (HKEY_CURRENT_USER), but I am unable to make it work on Internet Explorer. I've created a key under HKCU\Software\Classes that just executes cmd.exe. It works in Chrome but when I try to call my custom URI in IE I get this error:

unable to open this helper application the protocol specified in this address is not valid custom uri

If I try to rename cmd.exe to {anything_else}.exe and update it in my Windows registry, it works. Is there any way I can execute cmd using a custom URI under HKCU on IE?


Solution

  • Solved it creating a .bat that executes cmd