[Windows Mobile Apps and Games] serfer222:
HOWTO create shortcuts

A shortcut is a small file containing the name of a target program file that the shortcut represents. The shortcut might additionally specify parameters to be passed to the target program when it is run. Shortcuts are very commonly placed on Start Menu.

option 1: UC_NET_Magic_CreateShortcuts protable command

use UC_NET to create shortcuts for all programs in given folder

Before you read remaining part of this tutorial you need to know

-the name of a folder with target programs (should be real folder you have on your device)

-name of folder for your new shortcuts (any name you like)

now download UC_NET_v0.5_portable_commands_example.zip from the first post and open UC_NET_Magic_CreateShortcuts.txt file.

There is a line in this file. It is a command, that will be processed by UC_NET when you press "Customize".

Environment.SpecialFolder.Programs\My Util=StorageManager.Profiles.SDMemory\MyPortableUtils

Format is:

<destination folder>=<source folder with target programs>

You can find '=' character and everything before it is a destination folder

Environment.SpecialFolder.Programs\My Util

Environment.SpecialFolder.Programs - is a variable, that points to the place where all Start Menu shortcuts are stored.

"My Util" - is a name for new folder under start menu where all new shortcuts created by this command will be stored.

For example, if you want create shortcuts for GPS utilities you can change this part to

Environment.SpecialFolder.Programs\GPS

everything after '=' character is folder with target programs

StorageManager.Profiles.SDMemory\MyPortableUtils

Replace this string with your path - folder with target programs, and you ready.

For example, if your GPS utilities are here

\Storage Card\util\gps you should change this part to

\Storage Card\util\gps

Save your file and put it in your XDA_UC folder.

Start UC_NET, choose this folder and perss [Customize!]

option 2: UC_NET_CreateShortcuts protable command

control and tune every shortcut for every program you want

Before you read remaining part of this tutorial you need to know

-the name of a target program file (should be real program you have on your device)

-name of your new shortcut (any name you like)

now download UC_NET_v0.5_portable_commands_example.zip from the first post and open UC_NET_CreateShortcuts1.txt file.

There are two lines in this file. Each line is a command, that will be processed by UC_NET when you press "Customize".

The second line shows an example how to create shortcut with parameters, it's a bit tricky and for now delete this second line. You can return to it later, when you understand simple shortcut creation.

Let take first line:

Environment.SpecialFolder.Programs\Test Portable.lnk="\Storage Card\_new_distrib\portable\LiteNote\LiteNote.exe"

format is

<shortcut name>="<target program file>"

You can find '=' character and everything before it is a shortcut name

Environment.SpecialFolder.Programs\Test Portable.lnk

Environment.SpecialFolder.Programs - is a variable, that points to the place where all Start Menu shortcuts are stored.

"Test Portable" is a name for my new shortcut - when I open Start menu I want to see this name. You can change it as you wish.

".lnk" - is a file extension, do not change it.

For example, if you want create shortcut for chess game you can change this part to

Environment.SpecialFolder.Programs\Chess.lnk

everything after '=' character is target program file

"\Storage Card\_new_distrib\portable\LiteNote\LiteNote.exe"

Replace this string with your target program file path and you ready.

Do not remove quotes.

For example, if your chess gameis here

\Storage Card\games\chess\chess.exe you should change this part to

"\Storage Card\games\chess\chess.exe"

Do this for all your shortcuts. (copy this line and edit it)

Save your file and put it in your XDA_UC folder.

Start UC_NET, choose this folder and perss [Customize!]

option 3: XDA_UC registry command AutoShortCut

UC_NET can read XDA_UC registry commands, you can use them as well.

These commands are not portable, and you should uncheck "Portable" option in menu or use command line switches. example:

[HKEY_LOCAL_MACHINE\Software\XDA\AutoShortCut]
"Environment.SpecialFolder.Programs\\GPS\\SeaSGEE.lnk"="\\Windows\\SeaSGEE.exe"

read more about this type of commands in XDA_UC thread.

And you can make these commands more portable if you use variables - replace \Storage Card with StorageManager.Profiles.SDMemory, this will work even if Storage Card has different name in new ROM.

How to create shortcut with parameters?

MSDN says

example - creating shortcut to enable FileDialogChanger:

[HKEY_LOCAL_MACHINE\Software\XDA\AutoShortCut]
"Environment.SpecialFolder.Startup\\filedlgchgs.lnk"="\"ctlpnl.exe\" filedlgchg 1"