How to pin a batch file to Windows 10 or 11 taskbar or start menu

These tutorials will show you step by step 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 taskbar or start menu

1. Right-click on an empty space on your desktop, go to New, and then click on Shortcut.

Create a new shortcut on desktop in Windows 10

2. Enter the following text:


cmd /c "full path to your batch file"

For example:


cmd /c "D:\Tools\test.bat"

Create shortcut of batch file in Windows 10

3. Click on the Next button located in the bottom right corner of the window.

4. Enter a name for the shortcut.

Enter a name for shortcut

5. Click on the Finish button located in the bottom right corner of the window.

6. Right-click on the newly created shortcut and then click on Pin to Start or Pin to taskbar.

Pin a batch (.bat) file to Windows 10 taskbar or start menu

The batch file is now pinned to the start menu or taskbar.


How to pin a batch file to Windows 11 taskbar or start menu

1. Right-click on an empty space on your desktop, go to New, and then click on Shortcut.

Create a new shortcut on desktop in Windows 11

2. Enter the following text:


cmd /c "full path to your batch file"

For example:


cmd /c "D:\Tools\test.bat"

Create shortcut of batch file in Windows 11

3. Click on the Next button in the bottom right corner of the window.

4. Enter a name for the shortcut.

Enter a name for shortcut in Windows 11

5. Click on the Finish button in the bottom right corner of the window.

6. Right-click on the newly created shortcut and then click on Pin to Start or right-click on the newly created shortcut > Show more options > Pin to taskbar.

Pin a batch (.bat) file to Windows 11 start menu
Pin a batch (.bat) file to Windows 11 taskbar
Pin a batch (.bat) file to Windows 11 taskbar

The batch file is now pinned to the start menu or taskbar.