Solved

create shortcut with icon

Posted on 2014-04-03
1
451 Views
Last Modified: 2014-04-22
I am trying to roll out an internet shortcut with its own icon via sccm I am having trouble linking the icon to the shortcut. I have the below .vbs but it doesnt work can any one assist (I am not good with .vbs)

set WshShell = WScript.CreateObject("WScript.Shell" )
strDesktop = WshShell.SpecialFolders("AllUsersDesktop" )
set oShellLink = WshShell.CreateShortcut(strDesktop & "Your_Shortcut.lnk" )
oShellLink.TargetPath = " http://Server/website"
oShellLink.WindowStyle = 1
oShellLink.IconLocation = "C:WINDOWSsystem32shdoclc.dll"
oShellLink.Save
0
Comment
Question by:batesstaff
1 Comment
 
LVL 16

Accepted Solution

by:
Easwaran Paramasivam earned 500 total points
ID: 39975835
Icon location should be image format .ico. Say for example

oShellLink.IconLocation = "C:\WINDOWS\system32\bloh.ico"

Open in new window


It should work. You can provide DLL as IconLocation.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
topping1 challenge 7 90
White board coding practice 3 86
Adoquery sql  left join does not work 25 89
Support for Notepad++ (including downloading & installing a plugin) 5 114
This is an explanation of a simple data model to help parse a JSON feed
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now