Windows 10: How do I pin a bat/cmd file to the start menu or taskbar in Windows 11

Discus and support How do I pin a bat/cmd file to the start menu or taskbar in Windows 11 in Windows 10 Software and Apps to solve the problem; I've recently purchased a new computer, upgrading from Windows 7 to Window 11.I'm trying to configure my new Win11 machine to give me the same... Discussion in 'Windows 10 Software and Apps' started by JR0CHA, Jan 23, 2022.

  1. JR0CHA Win User

    How do I pin a bat/cmd file to the start menu or taskbar in Windows 11


    I've recently purchased a new computer, upgrading from Windows 7 to Window 11.I'm trying to configure my new Win11 machine to give me the same functionality and ease of use as my Win07 machine.I have several bat/cmd scripts that I use for starting applications in specific ways that I want. Such as copying backup files to a specific drive after exiting the program.I used to have these bat/cmd scripts pinned to my start menu. I cannot figure out how to do this in Windows 11.I've tried right clicking on the bat/cmd file to look for the "Pin to xxxxx" option, but it's not there for bat/cmd files.I

    :)
     
    JR0CHA, Jan 23, 2022
    #1
  2. daniel Win User

    How to pin either a Shortcut or a Batch file to the new Windows 7, 8 and 10 Taskbar and start menu?

    This thread nearly answers my problem, another thread worth reading that solves these issues in a different way is here:Adding Batch Files to Windows 7 Taskbar like the Vista/XP Quick Launch

    I was able to add a batchfile to the taskbar by the following steps:

    1. Renaming your .cmd/.bat to to .exe
    2. Right clicking on the *.exe and choose pin to taskbar
    3. Renaming it back to .cmd/.bat
    4. Shift+right clicking the taskbar icon (for the exe) and choose properties
    5. Changing the reference from *.exe to .cmd/.bat and change icon as needed

    It starts working right away but the icon refresh needs a reboot.

    I have an additional question though: how do you get a pinned taskbar batch file accepting another file as a parameter? It works when pinned onto the startbar, or just in the folder, but I can't get it working like it did on XP.

    This is the functionality I'm talking about:

     
    daniel, Jan 23, 2022
    #2
  3. Garnett13 Win User
    How to pin a bat file to start menu

    Before anyone points to the various workarounds, I've tried all I can find and they all seem to have problems.

    I want to be able to give other people in my office a folder of files (eg, on a usb stick) that they can move to a location on their PC that allow them to connect to our VPN and then RDP into their office machines.

    I have this running on my machine, but I do not know what set up each of our staff has.

    The sticking point is pinning a batch file to their start menu and taskbar.

    I am using a batch file that connects to the VPN using rasdial, and then remotes in using mstsc (with reference to an .rdp file). The folder I would give them would therefore contain a batch file and an rdp file

    I've managed to make all pathways relative so far - eg, in the batch file:

    Code:
    [i]mstsc "%~dp0mycompany.rdp"[/i]
    The problem I have is the flaw in Windows that means you cannot pin a batch file to Windows start menu or taskbar.

    I have tried the workaround using a shortcut and cmd...

    Code:
    C:\Windows\System32\cmd.exe /c "C:\Users\me\Documents\Connection to Company PC\companyremoteconnection.bat"
    The problem with that bodge-job is that cmd moves the starting point of the shortcut to System32, and so I can't then use a relative pathway to the batch file.

    Can anyone suggest any other ideas I might try?

    Thanks a lot.
     
    Garnett13, Jan 23, 2022
    #3
  4. Ralph Sta Win User

    How do I pin a bat/cmd file to the start menu or taskbar in Windows 11

    File explorer icon from taskbar dissappears while working on it

    Hi,

    To assist you with your concern, we suggest you pin the File Explorer from the Start Menu by following these steps:

    • Click the Start Menu.
    • Right-click File Explorer.
    • Choose Pin to taskbar.

    If you need further assistance, feel free to reply to this post.
     
    Ralph Sta, Jan 23, 2022
    #4
Thema:

How do I pin a bat/cmd file to the start menu or taskbar in Windows 11

Loading...
  1. How do I pin a bat/cmd file to the start menu or taskbar in Windows 11 - Similar Threads - pin bat cmd

  2. Pin BAT file to the Taskbar

    in Windows 10 Gaming
    Pin BAT file to the Taskbar: Is there an easy, extremely simple, way to just pin a *.bat file to the Taskbar of Windows 11? I've been searching and searching the internet to solve this problem. None of the solutions I found actually worked. This shouldn't be hard - but for whatever reason - it seems...
  3. Pin BAT file to the Taskbar

    in Windows 10 Software and Apps
    Pin BAT file to the Taskbar: Is there an easy, extremely simple, way to just pin a *.bat file to the Taskbar of Windows 11? I've been searching and searching the internet to solve this problem. None of the solutions I found actually worked. This shouldn't be hard - but for whatever reason - it seems...
  4. Pin a bat file DIRECTLY to start menu drop down windows

    in Windows 10 Software and Apps
    Pin a bat file DIRECTLY to start menu drop down windows: as said in title.I do NOT want the make a bat file shortcut and pin that.I do NOT want to hear about adding it to the Start-UP folder.I need the line of code to ad to the RegEdit to allow for .Bat files to be pinned/dragged and drop directly to my start menu. I know it is...
  5. Pin a bat file DIRECTLY to start menu drop down windows

    in Windows 10 Customization
    Pin a bat file DIRECTLY to start menu drop down windows: as said in title.I do NOT want the make a bat file shortcut and pin that.I do NOT want to hear about adding it to the Start-UP folder.I need the line of code to ad to the RegEdit to allow for .Bat files to be pinned/dragged and drop directly to my start menu. I know it is...
  6. Pin bat file Shortcut to Windows 11 taskbar

    in Windows 10 Gaming
    Pin bat file Shortcut to Windows 11 taskbar: I'm trying to pin app shortcuts to the W11 taskbar. I've managed to pin all apps to the bar except a shortcut to a bat file. Shortcuts to other apps can be pinned. It won't work and I wonder why??...
  7. Pin bat file Shortcut to Windows 11 taskbar

    in Windows 10 Software and Apps
    Pin bat file Shortcut to Windows 11 taskbar: I'm trying to pin app shortcuts to the W11 taskbar. I've managed to pin all apps to the bar except a shortcut to a bat file. Shortcuts to other apps can be pinned. It won't work and I wonder why??...
  8. How do I pin a bat/cmd file to the start menu or taskbar in Windows 11

    in Windows 10 Gaming
    How do I pin a bat/cmd file to the start menu or taskbar in Windows 11: I've recently purchased a new computer, upgrading from Windows 7 to Window 11.I'm trying to configure my new Win11 machine to give me the same functionality and ease of use as my Win07 machine.I have several bat/cmd scripts that I use for starting applications in specific...
  9. How to pin a bat file to start menu

    in Windows 10 Network and Sharing
    How to pin a bat file to start menu: Before anyone points to the various workarounds, I've tried all I can find and they all seem to have problems. I want to be able to give other people in my office a folder of files eg, on a usb stick that they can move to a location on their PC that allow them to connect to...
  10. Pin .cmd/bat files to taskbar

    in Windows 10 Ask Insider
    Pin .cmd/bat files to taskbar: Some UWP apps look very out of place on my taskbar and I wanted to change the icons. The only way I found looking instead of editing in MS Visual Studio was to make a run command and that opens the app. However, I can't pin it to the taskbar. I tried .bat but that didn't work...