Page 1 of 1

List of registered short forms

Posted: 13 Sep 2009 01:06
by zer0
Now that CTBs can get icons from those short forms, it's be really useful to know what they actually are! I had a look on the web, but to no avail. So I'd like to compile a list of those short names in this thread, so please either link to a list of them or just add what they are if you know. To begin with, we have:

Code: Select all

Photoshop
WinRAR
WinZip32
Wordpad
Notepad
WinWord
Powerpnt

Re: List of registered short forms

Posted: 13 Sep 2009 06:33
by serendipity
zer0 wrote:Now that CTBs can get icons from those short forms, it's be really useful to know what they actually are! I had a look on the web, but to no avail. So I'd like to compile a list of those short names in this thread, so please either link to a list of them or just add what they are if you know. To begin with, we have:

Code: Select all

Photoshop
WinRAR
WinZip32
Wordpad
Notepad
WinWord
Powerpnt
Some more:

Code: Select all

iexplore /1-25
i_view32 /1-11
iTunes /1-28
mplayerc /1-6
opera /1-5
mspaint /1-6

Re: List of registered short forms

Posted: 17 Sep 2009 22:56
by Stefan
Take a lock at
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths


You can even create your own short name:
- New Key: XY.exe
- (Standard) = X:\path\to\XYplorer.exe

Test:
Start > Run [xy ]
ENTER

Re: List of registered short forms

Posted: 17 Sep 2009 23:19
by TheQwerty
Stefan wrote:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths
I started there, but that doesn't seem to be where they are defined (at least it wasn't here).
Process Monitor revealed that it is checking:
HKEY_CURRENT_USER\Software\Classes\Applications\[appname].exe\shell\open\command
HKEY_CLASSES_ROOT\Applications\[appname].exe\shell\open\command
HKEY_CURRENT_USER\Software\Classes\Applications\[appname].exe\shell\edit\command
HKEY_CLASSES_ROOT\Applications\[appname].exe\shell\edit\command

CLASSES_ROOT is populated from:
HKEY_CURRENT_USER\Software\Classes\
and
HKEY_LOCAL_MACHINE\Software\Classes\

So if you want to add your own you should do it in one of those two places (HKCU is given priority over HKLM when they conflict, but if you want it to be default for all users HKLM is the way to go).
The names you can use are the [appname] parts of the key names, but you can drop the ".exe".

If you wanted to add "C:\Apps\Kitten.exe" for all users you'd want to create:
"HKLM\Software\Classes\Applications\kitten.exe\shell\open\command"
And then define the default value of "command" to be: "C:\Apps\Kitten.exe"
Unless Kitten can open files then you should probably just make it so it's ready for future use: "C:\Apps\Kitten.exe" "%1"
Then you can just use "kitten" in XY.

Re: List of registered short forms

Posted: 17 Sep 2009 23:38
by Stefan
You're right.
Classes\Applications\ can be used too to find local used 'short names' :D