

Title Create a shortcut on your Desktop with icon that can be changed any time by HackooĬall:CreateShortcut "%windir%\system32\calc.exe" "Calculatrice" "Winver.exe,0"Įcho Hit any key to change the icon shortcut.Ĭall:CreateShortcut "%windir%\system32\calc.exe" "Calculatrice" "%Windir%\System32\moricons.dll,6"Įcho The icon shortcut has been changed.Ĭall:CreateShortcut "%windir%\system32\calc.exe" "Calculatrice" "%Windir%\System32\SHEL元2.dll,13"Ĭall:CreateShortcut "%windir%\system32\calc.exe" "Calculatrice" "%Windir%\System32\SHEL元2.dll,14" Or to : Call:CreateShortcut "%windir%\system32\calc.exe" "Calculatrice" "%Windir%\System32\moricons.dll,6"

This a batch code that generate a vbscript to create a shortcut on your desktop with icon that can be changed any time when you call this sub like this way : Call:CreateShortcut "%windir%\system32\calc.exe" "Calculatrice" "Winver.exe,0" If you can help with the current code to get the icon changing then that's great too, of course I'll mark as solution etc. I imagine I'm simply googling the wrong thing. ObjShortcut.SetIconLocation "C:\Windows\System32\SHEL元2.dll", 13 Set objFolderItem = objFolder.ParseName("Shortcut.lnk") Set objFolder = objShell.NameSpace(DESKTOP)

Set objShell = CreateObject("Shell.Application") This is my code in the batch file: Const DESKTOP = &H10& The Desktop Shortcut points to the batch file in Desktop/toggleicon.BAT, (Batch files is in same directory) but I'm having trouble at the first stage of changing the icon on first execute. I'm trying to create a batch file that will toggle a desktop shortcut icon from icon0 to icon1 and back again on second execute. Then you should make a 2nd batch script to unhide the files.Powershell change shortcut icon vbscript create shortcut with icon change shortcut icon windows 10 script to create shortcut on desktop with icon how to change icon of vbs file script to change shortcut target create url shortcut with custom icon change icon script bat file and add it to your taskbar and then launch it whenever needed.
