Skip to content

Instantly share code, notes, and snippets.

@P7h
Created June 27, 2013 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save P7h/5879766 to your computer and use it in GitHub Desktop.
Save P7h/5879766 to your computer and use it in GitHub Desktop.
Windows specific registry snippet: This gist is useful for getting Console2 (http://sourceforge.net/projects/console) on right click of a folder, drive or background. This gist assumes that Console2 is installed and accessible from C:\Apps\Shells\Console2\Console.exe and the icon for the same is C:\Apps\Shells\Console2\Console.ico.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\console2]
@="Console2"
"Icon"=hex(2):43,00,3a,00,2f,00,41,00,70,00,70,00,73,00,2f,00,53,00,68,00,65,\
00,6c,00,6c,00,73,00,2f,00,43,00,6f,00,6e,00,73,00,6f,00,6c,00,65,00,32,00,\
2f,00,43,00,6f,00,6e,00,73,00,6f,00,6c,00,65,00,2e,00,69,00,63,00,6f,00,2c,\
00,30,00,00,00
[HKEY_CLASSES_ROOT\Directory\Background\shell\console2\Command]
@="C:\\Apps\\Shells\\Console2\\Console.exe -d \"%v\""
[HKEY_CLASSES_ROOT\Directory\shell\console2]
@="Console2"
"Icon"=hex(2):43,00,3a,00,2f,00,41,00,70,00,70,00,73,00,2f,00,53,00,68,00,65,\
00,6c,00,6c,00,73,00,2f,00,43,00,6f,00,6e,00,73,00,6f,00,6c,00,65,00,32,00,\
2f,00,43,00,6f,00,6e,00,73,00,6f,00,6c,00,65,00,2e,00,69,00,63,00,6f,00,2c,\
00,30,00,00,00
[HKEY_CLASSES_ROOT\Directory\shell\console2\command]
@="C:\\Apps\\Shells\\Console2\\Console.exe -d \"%L\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\console2]
@="Console2"
"Icon"=hex(2):43,00,3a,00,2f,00,41,00,70,00,70,00,73,00,2f,00,53,00,68,00,65,\
00,6c,00,6c,00,73,00,2f,00,43,00,6f,00,6e,00,73,00,6f,00,6c,00,65,00,32,00,\
2f,00,43,00,6f,00,6e,00,73,00,6f,00,6c,00,65,00,2e,00,69,00,63,00,6f,00,2c,\
00,30,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\console2\Command]
@="C:\\Apps\\Shells\\Console2\\Console.exe -d \"%v\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\console2]
@="Console2"
"Icon"=hex(2):43,00,3a,00,2f,00,41,00,70,00,70,00,73,00,2f,00,53,00,68,00,65,\
00,6c,00,6c,00,73,00,2f,00,43,00,6f,00,6e,00,73,00,6f,00,6c,00,65,00,32,00,\
2f,00,43,00,6f,00,6e,00,73,00,6f,00,6c,00,65,00,2e,00,69,00,63,00,6f,00,2c,\
00,30,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\console2\command]
@="C:\\Apps\\Shells\\Console2\\Console.exe -d \"%L\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\console2]
@="Console2"
"Icon"=hex(2):43,00,3a,00,2f,00,41,00,70,00,70,00,73,00,2f,00,53,00,68,00,65,\
00,6c,00,6c,00,73,00,2f,00,43,00,6f,00,6e,00,73,00,6f,00,6c,00,65,00,32,00,\
2f,00,43,00,6f,00,6e,00,73,00,6f,00,6c,00,65,00,2e,00,69,00,63,00,6f,00,2c,\
00,30,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\console2\command]
@="C:\\Apps\\Shells\\Console2\\Console.exe -d \"%L\""
@smallarmy
Copy link

"Icon"=hex(2):43,00,3a,00,2f,00,41,00,70,00,70,00,73,00,2f,00,53,00,68,00,65,
00,6c,00,6c,00,73,00,2f,00,43,00,6f,00,6e,00,73,00,6f,00,6c,00,65,00,32,00,
2f,00,43,00,6f,00,6e,00,73,00,6f,00,6c,00,65,00,2e,00,69,00,63,00,6f,00,2c,
00,30,00,00,00

what's it mean?

@P7h
Copy link
Author

P7h commented Aug 18, 2013

@smallarmy It is absolute path of the Icon file for the Console2 application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment