Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

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 Comments1 Solution3128 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 https://ipay.adp.com.

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!

'CreateSC.vbs
Dim objShell:Set objShell=CreateObject("Wscript.Shell")
strDesktop = objShell.SpecialFolders("Desktop")
Dim objSC: Set objSC=objShell.CreateShortCut(strDesktop & "\iPAY-adp.lnk")
With objSC
  .WorkingDirectory="https://ipay.adp.com"
  .TargetPath="https://ipay.adp.com"
  .IconLocation ="\\pcfileprint\PC_Signatures\CDR Link Project\Bank-Check.ico"
  .Save
End With
Set objSC=Nothing
Set objShell=Nothing
ASKER CERTIFIED SOLUTION
Avatar of sirbounty
Commented:
This problem has been solved!
Unlock 1 Answer and 11 Comments.
See Answers