petrus Posted March 26, 2014 Posted March 26, 2014 (edited) I'm trying to add mplayer.exe to the context menu, the old fashioned way via the registry:[HKEY_CLASSES_ROOT\*\shell\Open with mplayer][HKEY_CLASSES_ROOT\*\shell\Open with mplayer\command]@="mplayer.exe %1"Works fine on Windows XP, but now on Windows 7, when right clicking a file and selecting open with mplayer i get:"Windows cannot access the specified device, path or file. You may not have the appropriate permissions to access the item."Disabled UAC, gave file security permissions, the security center service is disabled... i have no idea what to do next. Edited March 26, 2014 by petrus
bphlpt Posted March 27, 2014 Posted March 27, 2014 @="mplayer.exe %1"Don't you have to give the full path to "mplayer.exe"?Cheers and Regards
petrus Posted March 27, 2014 Author Posted March 27, 2014 Not if you put the file into the system32 folder, but that was just as an example, never mind the path.
jaclaz Posted March 27, 2014 Posted March 27, 2014 Have you tried with "%L" instead of %1?I.e.:@="mplayer.exe" "%L"jaclaz
petrus Posted March 27, 2014 Author Posted March 27, 2014 I figured it out, the following works: @="mplayer.exe \"%1\""
petrus Posted March 27, 2014 Author Posted March 27, 2014 And right away another problem, do system variables like %ProgramFiles% no longer work the same?If i set the path in a .reg file as one of those it again longer works, like there is no path at all.
bphlpt Posted March 27, 2014 Posted March 27, 2014 See here - http://ss64.com/nt/syntax-variables.html - for standard Windows Environment Variables definitions.Cheers and Regards
petrus Posted March 27, 2014 Author Posted March 27, 2014 (edited) It looks like Windows 7 environment variables in the registry must be of the type REG_EXPAND_SZ (hexadecimal).That means "Command"=hex(2):22,25,57,49,4e,44,49,52,25,5c,5c,73,79,73,74,65,6d,33,32,22,00instead of "Command"="%WINDIR%\\system32" (which does work on Windowx XP and 2000).edit: except for icons, where you can still use "icon"="%WINDIR%\\system32\\shell32.dll,4" for example. Edited March 27, 2014 by petrus
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now