I am trying to create a shortcut file from vb code. I am using the WshShell object but I am getting error message. What dll should I install on my machine.
Unless you are executing this code inside VBScript, the first line should read:
Code:
Set WshShell = CreateObject("WScript.Shell")
Also, more of your code, along with the value being passed to the string variable sShortcutPath, and finally, the EXACT error message you are receiving. If you tell us that you are getting an error message that tells you something or other, like "some install needed", then all we can tell you is that there is "something wrong" with your code.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.