From within Access 2000, I am trying to create a Windows shortcut from a file I specify...
ie.. With file abc.txt located in C:\Temp
Create Shortcut abc.lnk located in D:\MyFiles
I have got this to work every now and then using
Dim wshShell As Object
Set wshShell = CreateObject("WScript.Shel
Dim lnkDesktop As Object
Set lnkDesktop = wshShell.CreateShortcut(D:
.TargetPath = "C:\Temp\abc.txt"
.WorkingDirectory = "C:\Temp"
Set lnkDesktop = Nothing
Set wshShell = Nothing
As shown in this answer...
but every now and then, on an infrequent basis, I get a run-time error stating the following...
Run-time Error -2147024769(8007007f)
The specified procedure can not be found
I think this might be a reference problem, however, as it runs every now and then... I'm not quite sure what is going on....
Any help would be appreciated...
Thanks in advance