creating menu shortcuts

  • Thread starter Thread starter Milsnips
  • Start date Start date
M

Milsnips

hi there,

i've got a problematic HP 6300 that likes to freeze and hard reset itself on
a customer, so i have put the install setup files/cabs in a SD card for easy
re-installation.

Just one thing i'd like to automate - how do i create a menu shortcut
programatically of an existing file, and place it in the start menu - can
this be done in registry or does it need to be done in the file system?

code exemple would be great.

thanks,
paul
 
Shortcuts are placed in the filesystem, they consist of a file with the
extension .lnk and the contents are simply:-

n#"\Full\Path\To\Application.exe"

Where n is the number of characters following the #. Although it appears
that on Windows Mobile 5.0 the number is ignored. Place this .lnk file into
\Windows\Start Menu\Programs. The name of the shortcut minus the extension
will be used as the display text and the icon will be retrieved from the
target exe.

Peter
 
Back
Top