Create a desktop shortcut

  • Thread starter Thread starter David C
  • Start date Start date
D

David C

What is the VBA code to create a new shortcut on the Windows Desktop, to a
user folder?
- I have the folder path as a string
- what is the easiest / neatest way to create the lnk file?
- I have hit complete blank wall, and need some help from the experts, or a
lateral thinker who can do it some other way.

I am using MSAccess2003 on a company network.
 
What is the VBA code to create a new shortcut on the Windows Desktop, to a
user folder?
- I have the folder path as a string
- what is the easiest / neatest way to create the lnk file?
- I have hit complete blank wall, and need some help from the experts, ora
lateral thinker who can do it some other way.

I am using MSAccess2003 on a company network.

not an Access question. have a look at www.mvps.org/vbnet
I am pretty sure Randy has an answer in there somewhere.
 
Thanks - are you saying that it cannot be done from within MSAccess ( which,
if true, will save me hours of fruitless effort) ?
 
Thanks (II) but I did not find the 'Randy' answer helpful - it explained how
to copy the existing shortcut for an installed application from the Programs
folder to another folder of your choice.

I simply need to create a new desktop shortcut, which points to a folder of
my choice.
 
Back
Top