I would like to write a program that Pins an APPLICATION like Microsoft WORD, EXCEL, and POWERPOINT to the taskbar on windows 7 or 8. I found the directory that hosts the shortcuts (%APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar); however, when I create a shortcut and move it to that folder, the icon does not appear in the taskbar. Also, removing a file from that folder does not remove the icon from the taskbar, it just disassociates the icon from any shortcut. The next time you click on the icon it will display a message asking if you want to remove the pinned item. I would like to automate these processes as I use them a lot on multiple computers per day.
-
4You might be able to achieve this with a .vbscriptCaleb Jares– Caleb Jares2012年11月02日 23:46:31 +00:00Commented Nov 2, 2012 at 23:46
-
good to know, ill check it out!theB3RV– theB3RV2012年11月03日 15:35:10 +00:00Commented Nov 3, 2012 at 15:35
-
@rofrol That is not the same question..."I would like to write a program that Pins an APPLICATION like Microsoft WORD, EXCEL, and POWERPOINT to the taskbar on windows 7 or 8."theB3RV– theB3RV2015年01月15日 13:41:48 +00:00Commented Jan 15, 2015 at 13:41
2 Answers 2
Found my answer elsewhere. VBScript is the way to go! http://www.codeproject.com/Articles/185512/Programmatically-PIN-shortcut-onto-Taskbar-on-Win7
1 Comment
Old question but I was looking for a way to do this too, this way seem much simpler than using VB.
Create a new shortcut and set the target to: cmd.exe /c "path\to\script.bat". Then you can just right-click and pin it like other shortcuts.
Got the solution from here: http://www.mysysadmintips.com/windows/clients/343-pin-bat-files-to-windows-8-start-screen