Solved Pin a shortcut to Start Menu


I found a thread that seemed reasonably appropriate for this question but I got the message that it's an old one & I should consider starting a new discussion. So I'm here.

I have a .bat file. I have created a shortcut for it. Both objects are in a nondescript run-of-the-mill directory somewhere in my disk storage space. Now I want to put the shortcut on the Start Menu. The popup context menu on the shortcut does not include the usual "Pin to Start" option that I have used to put other things into the Start Menu. I repeat, I have pinned things to the Start Menu. I know how to do that. But I can't see how to get this shortcut into the Start Menu. The .bat file can't be pinned either. Surely one of the primary purposes of creating a shortcut in the first place is to pin it to the Start Menu. Or am I yet again making the egregious error of applying logic to the situation? Perhaps I am asking one instance of a broader question: What types of object are permitted to be pinned to the Start Menu? For that matter, what types of object are permitted to be pinned to the Task Bar? Are those 2 lists identical? Partially overlapping? Completely different? As in . . . And now for something completely different. How to protect yourself against a man armed with a banana.
 
Windows Build/Version
W11 Pro 23H2
Hello mate, :alien:

Usually, only apps have the "Pin to Start" context menu item by default.

You should be able to use option 6 in the tutorial below as a workaround to "Pin to Start" the BAT file though.

 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium
Then I had a brainwave. I ran

dir "c:\Start Menu" /s 1>"a txt file"

Here is that txt file:

___________________________________________________

Code:
 Volume in drive C is Windows 11
 Volume Serial Number is 2066-6331

 Directory of C:\ProgramData\Microsoft\Windows

05/07/2022  12:24 AM    <DIR>          Start Menu
               0 File(s)              0 bytes

 Directory of C:\Users\All Users\Microsoft\Windows

05/07/2022  12:24 AM    <DIR>          Start Menu
               0 File(s)              0 bytes

 Directory of C:\Users\Default\AppData\Roaming\Microsoft\Windows

05/07/2022  12:24 AM    <DIR>          Start Menu
               0 File(s)              0 bytes

 Directory of C:\Users\WildWilly2\AppData\Local\Packages\Clipchamp.Clipchamp_yxz26nhyzhsrt\LocalCache\Roaming\Microsoft\Windows

12/02/2023  12:45 PM    <DIR>          Start Menu
               0 File(s)              0 bytes

 Directory of C:\Users\WildWilly2\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalCache\Roaming\Microsoft\Windows

12/01/2023  11:28 PM    <DIR>          Start Menu
               0 File(s)              0 bytes

 Directory of C:\Users\WildWilly2\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalCache\Roaming\Microsoft\Windows

11/30/2023  09:37 PM    <DIR>          Start Menu
               0 File(s)              0 bytes

 Directory of C:\Users\WildWilly2\AppData\Local\Packages\MicrosoftWindows.Client.WebExperience_cw5n1h2txyewy\LocalCache\Roaming\Microsoft\Windows

11/28/2023  11:59 PM    <DIR>          Start Menu
               0 File(s)              0 bytes

 Directory of C:\Users\WildWilly2\AppData\Local\Packages\NotepadPlusPlus_7njy0v32s6xk6\LocalCache\Roaming\Microsoft\Windows

11/29/2023  12:57 AM    <DIR>          Start Menu
               0 File(s)              0 bytes

 Directory of C:\Users\WildWilly2\AppData\Local\Packages\NVIDIACorp.NVIDIAControlPanel_56jybvy8sckqj\LocalCache\Roaming\Microsoft\Windows

12/01/2023  12:53 AM    <DIR>          Start Menu
               0 File(s)              0 bytes

 Directory of C:\Users\WildWilly2\AppData\Roaming\Microsoft\Windows

11/28/2023  11:59 PM    <DIR>          Start Menu
               0 File(s)              0 bytes

     Total Files Listed:
               0 File(s)              0 bytes
              10 Dir(s)  1,883,115,188,224 bytes free
___________________________________________________

I then pasted my shortcut one by one into some of these Start Menu directories. Actually, I pasted it into a subdirectory of the Start Menu directories in my listing above. Each one of these Start Menu directories contains a Programs subdirectory. In each case, this Programs subdirectory does contain shortcuts for objects I have pinned to my Start Menu. I didn't paste into the ones with \Packages\ in the path. That didn't seem appropriate. Perhaps more mistaken logic. In any case, after pasting the shortcut into each of those alleged Start Menus, I did a sign off of the user & signed back in. I thought maybe that could be a requirement to get something like this recognized.

Total failure in all cases. Something this simple should not be this difficult.
 

My Computer

System One

  • OS
    Windows 11 Pro 64-bit 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Self build
    CPU
    Intel Core i9-13900K
    Motherboard
    ASUS Z790-Plus WiFi TUF Gaming
    Memory
    4x32G Corsair Vengeance RGB DDR5 6000MHz
    Graphics Card(s)
    MSI/NVidia GeForce RTX 4070 Gaming X Trio 12G GDDR6X + built into motherboard Intel UHD Graphics
    Sound Card
    Built into graphics card + built into motherboard Realtek Audio
    Monitor(s) Displays
    Both connected to the NVidia adapter - Primary: Dell SE2417HGX 23" diagonal connected via HDMI-to-DisplayPort dongle, Secondary: Toshiba TV 32" diagonal connected via HDMI through Onkyo TX-NR717 surround receiver
    Screen Resolution
    1920x1080 on each monitor
    Hard Drives
    Samsung 970 EVO Plus NVMe M.2 2T
    6xSATA-to-USB 3.0 Fideco external enclosures holding SATA drives of various brands & sizes 1x20T, 2x18T, 2x6T, 1x500G, all connected to a multi-port USB hub
    For backups: USB 3.0 HDDs of various brands & sizes 1x20T, 2x4T, 1x1T + SSDs of various brands & sizes 2x480G, 1x1T, all connected to another multi-port USB hub, powered on only while actually performing backups & (may it never happen) restores
    PSU
    MSI MPG A1000G PCIe5 1000W, TrippLite Smart1500TSU 1200W UPS for the main system, TrippLite ECO850LCD 850W UPS for the DASD & my Internet connectivity boxes (no reason to throw out legacy equipment that stil works fine)
    Case
    Fractal North
    Cooling
    DeepCool AK620 CPU cooler (air, 2 fans), 2 case fans, 1 fan in PSU, 3 fans in graphics adapter
    Keyboard
    Cherry MX 11900 USB (wired)
    Mouse
    Touchpad built into the keyboard
    Internet Speed
    500Mbps via Spectrum cable TV/cell phone bundle
    Browser
    Firefox
    Antivirus
    Built into Windows 11
I have a .bat file. I have created a shortcut for it.

Option 6, asp posted by @Brink in post #2

Right-click bat file, select properties

Then do as eplained below.

1701544484185.png
 

My Computers

System One System Two

  • OS
    Win 11 Pro 23H2 22631.3527
    Computer type
    PC/Desktop
    Manufacturer/Model
    Self Built
    CPU
    Intel® Core™ i7-14700F
    Motherboard
    ASUS TUF GAMING Z690-PLUS WIFI
    Memory
    G.SKILL Ripjaws S5 Series 64GB (2 x 32GB) DDR5
    Graphics Card(s)
    EVGA GeForce RTX 3050 XC Black Gaming
    Sound Card
    Sound Blaster AE-5 Plus
    Monitor(s) Displays
    ASUS TUF Gaming 27" 2K HDR Gaming
    Screen Resolution
    2560 x 1440
    Hard Drives
    Samsung 990 Pro 1TB NVMe (Win 11)
    SK hynix P41 500GB NVMe (Win 10)
    SK hynix P41 2TB NVMe (x3)
    Crucial P3 Plus 4TB
    PSU
    Corsair RM850x Shift
    Case
    Antec Dark Phantom DP502 FLUX
    Cooling
    Noctua NH-U12A chromax.black + 7 Phantek T-30's
    Keyboard
    Logitech MK 320
    Mouse
    Razer Basilisk V3
    Internet Speed
    350Mbs
    Browser
    Firefox
    Antivirus
    Winows Security
    Other Info
    Windows 10 22H2 19045.4291
    On System One
  • Operating System
    Win 11 Pro 23H2 22631.3527
    Computer type
    PC/Desktop
    Manufacturer/Model
    Self Built
    CPU
    Intel Core i7-11700F
    Motherboard
    Asus TUF Gaming Z590 Plus WiFi
    Memory
    64 GB DDR4
    Graphics card(s)
    EVGA RTX 2060 KO Ultra Gaming
    Sound Card
    SoundBlaster X-Fi Titanium
    Monitor(s) Displays
    Samsung F27T350
    Screen Resolution
    1920x1080
    Hard Drives
    Samsung 980 Pro 1TB
    Samsung 970 EVO Plus 2TB
    Samsung 870 EVO 500GB SSD
    PSU
    Corsair HX750
    Case
    Cougar MX330-G Window
    Cooling
    Hyper 212 EVO
    Internet Speed
    350Mbps
    Browser
    Firefox
    Antivirus
    Windows Security
WHAT?!?!?!? That worked! Brink strikes again.

I didn't do exactly what you describe in that tutorial because I had already done some of the steps. I had already created the shortcut & changed its icon. But the shortcut resides in a directory, not on my Desktop. Those are all cosmetic differences. Inserting "explorer" in the front of the path on the Shortcut tab of the shortcut's Properties makes the Pin to Start option appear in its context menu when it hadn't been there previously. That is completely non-intuitive. Further, it shouldn't be necessary. It shouldn't be that complicated. Shortcuts are intended by their very nature to be pinned to the Start Menu (and wherever else, like the Start Bar). The Pin to Start option should just be there without all this other fancy footwork.

How does this work? What does prepending "explorer" do? I want to understand. I don't want to just add a pinch of salt, stir for 10 minutes, bake for half an hour, let cool, eat. I want to understand.

By the way, my shortcut now appears in one of the directories where I had already tried to copy/paste it myself:

C:\Users\WildWilly2\AppData\Roaming\Microsoft\Windows\Start Menu\Programs

I don't understand why my copy/paste didn't work, but putting explorer in the beginning of the path made it eligible to be pinned. I bet I could probably now copy/paste the modified shortcut into that directory, and maybe even into any of the others, instead of using the Pin to Start option in the popup context menu, & it would make the object appear on my Start Menu. I'm not going to try that since the problem is fixed now. Finally. But I still want to understand. What is it about that prepending that makes it work?
 

My Computer

System One

  • OS
    Windows 11 Pro 64-bit 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Self build
    CPU
    Intel Core i9-13900K
    Motherboard
    ASUS Z790-Plus WiFi TUF Gaming
    Memory
    4x32G Corsair Vengeance RGB DDR5 6000MHz
    Graphics Card(s)
    MSI/NVidia GeForce RTX 4070 Gaming X Trio 12G GDDR6X + built into motherboard Intel UHD Graphics
    Sound Card
    Built into graphics card + built into motherboard Realtek Audio
    Monitor(s) Displays
    Both connected to the NVidia adapter - Primary: Dell SE2417HGX 23" diagonal connected via HDMI-to-DisplayPort dongle, Secondary: Toshiba TV 32" diagonal connected via HDMI through Onkyo TX-NR717 surround receiver
    Screen Resolution
    1920x1080 on each monitor
    Hard Drives
    Samsung 970 EVO Plus NVMe M.2 2T
    6xSATA-to-USB 3.0 Fideco external enclosures holding SATA drives of various brands & sizes 1x20T, 2x18T, 2x6T, 1x500G, all connected to a multi-port USB hub
    For backups: USB 3.0 HDDs of various brands & sizes 1x20T, 2x4T, 1x1T + SSDs of various brands & sizes 2x480G, 1x1T, all connected to another multi-port USB hub, powered on only while actually performing backups & (may it never happen) restores
    PSU
    MSI MPG A1000G PCIe5 1000W, TrippLite Smart1500TSU 1200W UPS for the main system, TrippLite ECO850LCD 850W UPS for the DASD & my Internet connectivity boxes (no reason to throw out legacy equipment that stil works fine)
    Case
    Fractal North
    Cooling
    DeepCool AK620 CPU cooler (air, 2 fans), 2 case fans, 1 fan in PSU, 3 fans in graphics adapter
    Keyboard
    Cherry MX 11900 USB (wired)
    Mouse
    Touchpad built into the keyboard
    Internet Speed
    500Mbps via Spectrum cable TV/cell phone bundle
    Browser
    Firefox
    Antivirus
    Built into Windows 11
It didn't work since it wasn't considered an application file.

The workaround of adding explorer.exe to the front of the target path makes it think it's an app file.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium
In other words, the rule is that the only category of objects you can pin to the Start Menu is apps. OK. If that's the rule . . . I hope somebody is thinking about changing that. You should be able to pin whatever you want there. The Recommended section of the Start Menu contains other categories of object. It all seems rather arbitrary.
 

My Computer

System One

  • OS
    Windows 11 Pro 64-bit 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Self build
    CPU
    Intel Core i9-13900K
    Motherboard
    ASUS Z790-Plus WiFi TUF Gaming
    Memory
    4x32G Corsair Vengeance RGB DDR5 6000MHz
    Graphics Card(s)
    MSI/NVidia GeForce RTX 4070 Gaming X Trio 12G GDDR6X + built into motherboard Intel UHD Graphics
    Sound Card
    Built into graphics card + built into motherboard Realtek Audio
    Monitor(s) Displays
    Both connected to the NVidia adapter - Primary: Dell SE2417HGX 23" diagonal connected via HDMI-to-DisplayPort dongle, Secondary: Toshiba TV 32" diagonal connected via HDMI through Onkyo TX-NR717 surround receiver
    Screen Resolution
    1920x1080 on each monitor
    Hard Drives
    Samsung 970 EVO Plus NVMe M.2 2T
    6xSATA-to-USB 3.0 Fideco external enclosures holding SATA drives of various brands & sizes 1x20T, 2x18T, 2x6T, 1x500G, all connected to a multi-port USB hub
    For backups: USB 3.0 HDDs of various brands & sizes 1x20T, 2x4T, 1x1T + SSDs of various brands & sizes 2x480G, 1x1T, all connected to another multi-port USB hub, powered on only while actually performing backups & (may it never happen) restores
    PSU
    MSI MPG A1000G PCIe5 1000W, TrippLite Smart1500TSU 1200W UPS for the main system, TrippLite ECO850LCD 850W UPS for the DASD & my Internet connectivity boxes (no reason to throw out legacy equipment that stil works fine)
    Case
    Fractal North
    Cooling
    DeepCool AK620 CPU cooler (air, 2 fans), 2 case fans, 1 fan in PSU, 3 fans in graphics adapter
    Keyboard
    Cherry MX 11900 USB (wired)
    Mouse
    Touchpad built into the keyboard
    Internet Speed
    500Mbps via Spectrum cable TV/cell phone bundle
    Browser
    Firefox
    Antivirus
    Built into Windows 11

Latest Support Threads

Back
Top Bottom