Microsoft KB Archive/292513

= HOWTO: Create a Shortcut in a Custom Platform Image =

PSS ID Number: 292513

Article Last Modified on 7/22/2003

-

The information in this article applies to:


 * Microsoft Windows CE Operating System, Versions 3.0

-



This article was previously published under Q292513



SUMMARY
This article describes how to edit platform files to add a custom shortcut to the desktop on Windows CE.



MORE INFORMATION
The following steps demonstrate how to add a desktop shortcut. This example uses a link to MyApp.exe.  Create the .lnk file. A .lnk file is a text file that contains the command line for the linked target along with the length of the command line. It is in the format  # . For example, to start MyApp.exe, a sample MyApp.lnk file contains:

20#\Windows\MyApp.exe

The .lnk file should be placed in the Public\ \WinCE300\Oak\Files folder. Create an entry in the .dat file to move the link. Because the Windows CE ROM image places all ROM files into the \Windows folder by default, these files must be moved to other locations at system boot. The .dat file controls how the files are copied.

Place the following line in the Project.dat file (located in \Public\ \Oak\Files) to copy MyApp.lnk to the desktop:

Directory(&quot;\Windows\&quot;):-File(&quot;MyApp.lnk&quot;, &quot;\Windows\MyApp.lnk&quot;)

 Add the .lnk file to the ROM image. The .lnk file must be included in the files stored in the ROM image. Edit the Project.bib file and add the following line in the section for &quot;FILES&quot;:

MyApp.LNK $(_FLATRELEASEDIR)\MyApp.LNK NK S



