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

  1. Right-click on your desktop.
  2. Go to New.
  3. Click on Shortcut.
    Create a new shortcut on desktop in Windows 11
  4. Enter the following text:
    
    cmd /c "full path to your batch file"
    
    

    For example:

    
    cmd /c "C:\Users\MX\Documents\CMD.bat"
    
    
    Create a shortcut for batch file in Windows 10 or 11
  5. Click on Next.
  6. Type a name for the shortcut.
    Type a name for the shortcut
  7. Click on Finish.
  8. Right-click on the shortcut.
  9. 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.
    Pin a batch file to Windows 10 or 11 start menu or 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.


Windows


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