Real Desktop Items, not Shortcuts


Okay. This is how you create those files (like Network Neighbourhood) onto
your desktop.
The ones that don't show up in Windows, DOS or any Properties windows.


Info:
(St1) = some random string i.e. {0ce45360-6245-11d0-b599-10005a11ba98}
you can copy an existing name, change around a few numbers and there you
go.
AppName = The name of your app, eg Minesweeper for an example *See info2
IconPath= The path of the icon to be shown, for example
"C:\Windows\Winmine.exe". Most EXE's have icons built in.
AppPath = The path of the application, for example "C:\Windows\Winmine.exe".

Info2:
Where it says Open: You can have multiple names and applications, so you
could have the one file as a 'mass menu' type thing.
If you are going to do this, put the appname as something generic, not the
name of one application...unless you want to have the one name for all, and
seperate menu openings, you could have some privacy....
Also, the FIRST key (OPEN here) will be doubleclick default, and first in
the rightclick list.
Any other keys will appear in the order they are in the registry.

Okay. Create all of these keys. Some others with the same names will be
created for you by Windows.


HKEY_CLASSES_ROOT\CLSID\(St1)
Default "AppName"

HKEY_CLASSES_ROOT\CLSID\(St1)\DefaultIcon
Default "IconPath"

HKEY_CLASSES_ROOT\CLSID\(St1)\Shell
-----Don't set a value to DEFAULT-----

****See info2
HKEY_CLASSES_ROOT\CLSID\(St1)\Shell\Open
-----Don't set a value to DEFAULT-----

****See info2
HKEY_CLASSES_ROOT\CLSID\(St1)\Shell\Open\Command
Default "AppPath"

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\explorer\Deskto
p\NameSpace\(St1)
Default "AppName"


NOTE TURNS OUT AS A DESKTOP *ITEM* NOT FILE/SHORTCUT

The item created above has the following menu options(rightclick):
----
Open *** First reference, always default for doubleclick.
--> If other references were created here, they will appear below in the
order created.
Cut
Create Shortcut (default when dragged)
Delete
----
This is handy for a program you use a lot, therefore it is hard to
accidently remove it etc.

Notes:
The 'OPEN' command will open the program specified in Registry
The 'CUT' command will not work on most computers.
The 'CREATE SHORTCUT' command does just that.
The 'DELETE' command will delete the file, bypassing the recycle bin.

Credits

Written by teknesium (14/m/Australia)