Programming
--
Questions
--
Followers
Top Experts
Secondly - any guidance on this. Â We're using a product called Netbackup and the default shortcut placed on the desktop points to an invalid icon - I'd like to correct this, but across 90+ servers, I'd rather script a solution...
WSH/WMI/VBS preferred
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
dim strIcon, strCutPath, oShell, oCut
strIcon = "notepad.exe, 0" Â ' the correct icon as specified by file name, position in the file
strCutPath = "c:\document &Â settings\all users\desktop\shorcut.lnk"
set oShell = WScript.CreateObject("WScr
set oCut = WShell.CreateShortcut(strC
oCut.IconLocation = strIcon
oCut.Save
Or maybe I can just deploy it locally - I already have code to do that...let me test this...thanx.
dim strIcon, strPath
dim oShell, oCut
strIcon="E:\VERITAS\NetBac
strPath="%AllUsersProfile%
Set oShell = Wscript.CreateObject("Wscr
Set oCut = oShell.CreateShortcut(strP
oCut.IconLocation = strIcon
oCut.Save
Set oCut=Nothing
Set oShell=Nothing
Â






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Any ideas?
This line above:
if oFile.attributes &Â 1 then oFile.attributes = oFile.attributes - 1
should read:
if oFile.attributes and 1 then oFile.attributes = oFile.attributes - 1
But thanx - it works! :^)

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Programming
--
Questions
--
Followers
Top Experts
Programming includes both the specifics of the language you’re using, like Visual Basic, .NET, Java and others, but also the best practices in user experience and interfaces and the management of projects, version control and development. Other programming topics are related to web and cloud development and system and hardware programming.