troubleshooting Question

VBS or Batch File - Add a Shortcut to an All Users Desktop Folder

Avatar of SP3CLt
SP3CLtFlag for United States of America asked on
Visual Basic ClassicWindows BatchVB Script
11 Comments2 Solutions3128 ViewsLast Modified:
Hello Experts,

I need a VB Script or Batch File to add a shortcut to a all users desktop folder called "Corporate Shortcuts". The link is

The requested Icon location is \\pcfileprint\PC_Signatures\CDR Link Project\Bank-Check.ico

I have the the following code ready, however it will place the icon/shortcut on the desktop not the All Users/ Desktop / Corporate Shortcuts folder..

Thanks in advance!

Dim objShell:Set objShell=CreateObject("Wscript.Shell")
strDesktop = objShell.SpecialFolders("Desktop")
Dim objSC: Set objSC=objShell.CreateShortCut(strDesktop & "\iPAY-adp.lnk")
With objSC
  .IconLocation ="\\pcfileprint\PC_Signatures\CDR Link Project\Bank-Check.ico"
End With
Set objSC=Nothing
Set objShell=Nothing
Join our community to see this answer!
Unlock 2 Answers and 11 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros