Create Shortcut

M

Muhammad Arif

Dear All,
I want to create a short cut on desktop programaticall using VB.Net
CF. I dig down the googleCF group and found the following line of code
which is not much more explaintry.
Modified the .inf file to add a shortcut in start menu :

[Shortcuts]
MyApplication,0,MyApplication.exe,%CE11%
MyApplication,0,MyApplication.exe,%CE2%\Start Menu

So, the first shortcut works well (start menu\programs)
but the second fails.
It creates the shortcut in "\windows" instead
of "\Windows\start menu", why ?

I could not understand the .inf.
Is this file exists in device or have to create?
Moreover, what is the extension of shortcut which is created in
\Windows\Desktop when we create a shortcut?

If someone have the complete line of code of creating shortcut on
desktop, please post it.

Regards,
Muhammad Arif
 
P

Peter Foot [MVP]

The %CE17% identifier can be used for \Windows\Start Menu folder. See the
help topic "inf files for device projects, directory identifiers" in the
Visual Studio help index for all the supported ce directory identifiers.

Peter

--
Peter Foot
Windows Embedded MVP
OpenNETCF.org Senior Advisor
www.inthehand.com | www.opennetcf.org

Muhammad Arif said:
Dear All,
I want to create a short cut on desktop programaticall using VB.Net
CF. I dig down the googleCF group and found the following line of code
which is not much more explaintry.
Modified the .inf file to add a shortcut in start menu :

[Shortcuts]
MyApplication,0,MyApplication.exe,%CE11%
MyApplication,0,MyApplication.exe,%CE2%\Start Menu

So, the first shortcut works well (start menu\programs)
but the second fails.
It creates the shortcut in "\windows" instead
of "\Windows\start menu", why ?

I could not understand the .inf.
Is this file exists in device or have to create?
Moreover, what is the extension of shortcut which is created in
\Windows\Desktop when we create a shortcut?

If someone have the complete line of code of creating shortcut on
desktop, please post it.

Regards,
Muhammad Arif
 
M

Muhammad Arif

Dear Peter,

Thank you for giving useful hints. My actual question is that what is
the name of this .inf file and where does it exist in the device (path
of .inf file in Windows CE operating system)? So that I modify it to
fulfill my requirements.

Regards,
Muhammad Arif
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top