To create a program shortcut, you need to create a file with a .lnk extension. The following steps demonstrate the procedure.
Within a PC environment, such as Windows, create a file with an editor like Notepad and call it ShortCutTest.lnk.
Place the entire command line in the first line of the file, including the .exe file. You must use quotation marks if it resides in a directory with spaces, such as ?\Program Files.?
Count the number of characters in the command line, including spaces and quotes, to get the length of the string.
In the .lnk file, the format for the line is
<length of string>#<command line>
Save the file and copy it to the "\Windows\Start Menu" directory on the Windows CE or Pocket PC device. This places the shortcut at the top level of the Start Menu.
Here is an example of the above steps:
Run: notepad c:\ShortCutTest.lnk
Add the following statement to the first line of the .lnk file:
77#"\Program Files\Sybase\ASA\dbsrv8.exe" "\Program Files\Sybase\ASA\asademo.db"Note: There are 77 characters in the command to be executed.
Save the file to "\Windows\Start Menu".
On the Windows CE or Pocket PC device, tap the Start button to see the shortcut that was created. The name of the shortcut is the same as the name of the .lnk file, minus the extension.