Creating a Desktop Shortcut

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 :)
 
J

John Nurick

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.
 
S

Steve

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.
.
 

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