Creating a Desktop Shortcut

  • Thread starter Thread starter Steve
  • Start date Start date
S

Steve

Hi,

I have created a database and as part of installation, I
want to create a Desktop Shortcut if the user requires one.

Can this be done? Bearing in mind, the user can specify
where the database is installed to, so I need to change
the Target property of the Shortcut.

Any help would be greatly appreciated,

Cheers,
Steve :)
 
Hi Steve,

One way is to use the Windows Script Host object model. Among other
things there's a Shortcut object (IWshShortcut_Class) and a
CreateShortcut method of the IWshShell object.

However scripting isn't enabled on all computers. There must also be API
functions for manipulating shortcuts, but I don't know where they are.
 
John,

Thanks for the reply.

I have found the References to the IWshShell object, but
cannot seem to get them to work. How do I reference the
IWshShell?

Cheers,
Steve
-----Original Message-----
Hi Steve,

One way is to use the Windows Script Host object model. Among other
things there's a Shortcut object (IWshShortcut_Class) and a
CreateShortcut method of the IWshShell object.

However scripting isn't enabled on all computers. There must also be API
functions for manipulating shortcuts, but I don't know where they are.

Hi,

I have created a database and as part of installation, I
want to create a Desktop Shortcut if the user requires one.

Can this be done? Bearing in mind, the user can specify
where the database is installed to, so I need to change
the Target property of the Shortcut.

Any help would be greatly appreciated,

Cheers,
Steve :)

--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
.
 
Back
Top