Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding a shortcut to the startmenu???

Status
Not open for further replies.

BobbaFet

Programmer
Feb 25, 2001
903
0
0
NL
Hi all,

How do I add a shortcut to the startmenu? Just like
installers do? I am clueless about how to do this.
I know that shortcuts are .lnk files but I cant seem
to find any info but how to create them.

Thanx allot,

BobbaFet Everyone has a right to my opinion.
E-mail me at cwcon@programmer.net
 
Hi,
A shortcut is a shell link. A shell link is a data object that contains information used to access another object in the shell's namespace that is, any object visible through Microsoft Windows Explorer.
To create a shell link and set the values use the following methods (functions):

SetArguments: Sets the command-line arguments associated with a shell link object.
SetDescription: Sets the description string for a shell link object.
SetHotkey: Sets the hot key for a shell link object.
SetIconLocation: Sets the location (path and index) of the icon for a shell link object.
SetPath: Sets the path and filename of a shell link object.
SetRelativePath: Sets the relative path for a shell link object.
SetShowCmd: Sets the show (SW_) command for a shell link object.
SetWorkingDirectory: Sets the name of the working directory for a shell link object.

For more infor check the Windows SDK help.
Welcome to the Pythian Games!
Long live Godess Athena!
dArktEmplAr of Delphi Oracle
 
Thanx DarkTemplar

I dont know if this works but im gonna find out !!!

Thanx allot ;-)

BobbaFet

Everyone has a right to my opinion.
E-mail me at cwcon@programmer.net
 
Hi darktemplar,

I cant find any of the functions you mentioned !!!
Where are they ??? They are not in ShellAPI and also
not in ShlObj. I dont know where to look for them because
the help only indicates that they are shell objects.
Could you tell me where they are DT?

Thanx allot,

BobbaFet Everyone has a right to my opinion.
E-mail me at cwcon@programmer.net
 
Hi darktemplar,

I cant find any of the functions you mentioned !!!
Where are they ??? They are not in ShellAPI and also
not in ShlObj. I dont know where to look for them because
the help only indicates that they are shell objects.
Could you tell me where they are DT?

Thanx allot,

BobbaFet Everyone has a right to my opinion.
E-mail me at cwcon@programmer.net
 
I am reviving this thread because I still dont know what to do.

BobbaFet Everyone has a right to my opinion.
E-mail me at cwcon@programmer.net
 
Hi Bobbafet

I just found them!, in source/rtl/win/shlobj.pas
(Delphi 3 Standard).

Steve.
 
Should have mentioned I did this with a 'Find in files' search. There was nothing in the Help.

Steve..
 
hi schu,

thanx, that was exactly what i was looking for!

Thanx allot,

BobbaFet Everyone has a right to my opinion.
E-mail me at cwcon@programmer.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top