Powershell set icon for shortcut4/4/2023 ![]() This is seen here: $appName = "PowerShell" In the first line of the script, we assign the string PowerShell to the $appName variable. When we run the CreateShortCutOnQuickLaunch.ps1 script, we are greeted with the friendly Windows PowerShell icon on our Quick Launch toolbar: $qlf = join-path -path $em("appdata") -childPath "Microsoft\Internet Explorer\Quick Launch" $volEnv = $wshShell.environment("volatile") ![]() $wshshell = new-object -comobject wscript.shell Here is the CreateShortCutOnQuickLaunch.ps1 script: $appName = "PowerShell" See also a VBScript version of this script. Luckily, in Windows PowerShell we have a cmdlet that makes it rather easy to do. With semispecial folders, we have to work with the path ourselves. Don’t know why, but it just did not quite make the cut to be special. RS, as you no doubt discovered, the Quick Launch toolbar is not a special folder at all. When they are missing it is a major bummer. On the other hand, as we saw in the last “Hey, Scripting Guy!”, special folders have coded values that can make referring to them easier. They are just folders after all, but they live in a special place. One of the funny things about special folders is that they, for the most part, really are not all that special. So how can I create a shortcut to Windows PowerShell that will live on the Quick Launch toolbar? The problem is that I cannot find a special folder or anything that refers to this location. ![]() Hey, Scripting Guy! I love the Quick Launch toolbar. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |