So you want to pin a batch file or shortcut with a custom icon to the start menu / taskbar in Windows 7, 8 and 10?
Easily add a batch file (.bat) to the taskbar by following these steps:
1. Rename your .bat or .cmd file extension to .exe
2. Right click the newly renamed .exe file and select pin to taskbar
3. Rename the file extension back to .bat or .cmd
4. Shift+right click the newly pinned .exe taskbar icon and choose properties
5. Change the file extension from .exe to .bat or .cmd and change the icon as needed. (for lots of system icons here use the path: “%SystemRoot%\system32\SHELL32.dll”)
6. The shortcut will work immediately you’ll need to reboot or just kill explorer.exe in task manager and re-run it to update/refresh the icon if you changed it.
I use the method above to launch .vbs scripts from the taskbar.
Here’s how to create a .bat file to run vbs scripts…
Open notepad to create a blank text file and add one of the following lines
wscript.exe yourscript.vbs (wscript just runs the vbs as a Windows process)
cscript.exe yourscript.vbs (cscript runs the vbs in a command/console window)
then save the text file as a .bat file in the same folder as the .vbs script file.
If this blog post has helped you please feel free to say thanks by clicking “Buy Me a Coffee” PayPal Donate button in the sidebar (down the bottom on mobiles)
or via http://www.paypal.me/alanhart