And if the executable is in "%WinDir%" or "%WinDir%\system32" you dont have to add a path to the executable, just use something like this: HKCR,"CLSID\%CLSIDx%\Shell\Open\command",,,"Executable.exe" Insead of HKCR,"CLSID\%CLSIDx%\Shell\Open\command",,,"%11%\Executable.exe"