How to pin a batch file to Windows 10 or 11 taskbar or start menu
This step-by-step tutorial will show you how to pin a batch (.bat) file to the taskbar or start menu in Windows 10 and 11.
How to pin a batch file to Windows 10 or 11 taskbar or start menu
- Right-click on your desktop.
- Go to New.
- Click on Shortcut.
-
Enter the following text:
cmd /c "full path to your batch file"
For example:
cmd /c "C:\Users\MX\Documents\CMD.bat"
- Click on Next.
- Type a name for the shortcut.
- Click on Finish.
- Right-click on the shortcut.
- Click on Pin to Start or Pin to taskbar. On Windows 11, you first need to click on Show more options and then click on Pin to taskbar.
The batch file is now pinned to the Windows 10 or 11 start menu or taskbar.
You can delete the new shortcut from your desktop because you don't need it anymore.
Related:
How to pin a folder to the taskbar in Windows 10 and 11
How to make Windows 11 taskbar look like Windows 10 taskbar