9

I noticed the other day when running eclipse that I can't pin the Eclipse exe directly (I can pin the shortcut to start it, however once started, it seems to open another application that uses the Java SDK, and that can't be pinned).

It got me thinking: Why can't you pin everything to the taskbar? What are the restrictions on programs? In the case of my Eclipse example, I believe that it could be because its running the Java program in the background, but the same thing happens for programs such as Starcraft 2.

2
  • Image of me being unable to pin eclipse to the taskbar: db.tt/PlAqxM2n Jun 13, 2012 at 6:56
  • The same happens for minecraft, once your in game (after logging in) you cant pin it to the taskbar Jun 13, 2012 at 7:07

6 Answers 6

4

Those apps are actually a multi process app. A tiny launcher (in the case of Starcraft) or a runtime (Java for Eclipse and Minecraft) are started by your shortcut, which in turn load your application main process. If those starter don't assign a correct AppUserModelIDs, which essentially just an identifier for the taskbar, they can't be pinned.

1
  • 1
    Ah ok, that also explains why other games with launchers can be pinned Jun 13, 2012 at 22:02
2

You can work around this by creating a command prompt, pin it to the task bar, and then change the target to what you want.

Found here: http://mattrefghi.com/blog/2012/06/how-to-pin-a-batch-file-to-the-taskbar-in-windows-7/

Click the Start button. Start typing “Command Prompt” in the search box. Right-click Command Prompt once it appears in the search results, and select Pin to Taskbar. While holding SHIFT, right-click the black Command Prompt icon in the taskbar. Select Properties from the context menu that appeared. Now we bring our attention to the value in the Target field: %windir%\system32\cmd.exe tweet As it stands, it’s just trying to launch the executable that will make the Command Prompt window appear. For our trick to work, we must add the follow text, in bold: %windir%\system32\cmd.exe /c “c:\somewhere\myscript.bat” tweet The “/c” parameter tells “cmd.exe” that it should only run the command provided, and then immediately close itself. In this case, we’re telling it to launch a batch file, and that file can run any number of commands within itself. The path, naturally, should reflect the actual location of the file on your machine. Once this is set up, we can simply click the black Command Prompt icon to launch our script. I have no idea if Microsoft plans to improve support for such files, but in the meantime, I consider this a decent workaround.

2
  • Awesome. Even works on network drives! Does not work with shortcuts to exe files on network drives however. Jun 22, 2016 at 22:23
  • 1
    So, in summary: "pin a shortcut to cmd /c "thethingyouwanttorun" instead"?
    – mwfearnley
    Apr 23, 2019 at 13:33
1

I'd just like to point out, for future reference, that you can indeed pin apps with launchers. Just drag the launcher to the taskbar, and it will be there. Only problem is they would not work quite as the normal apps, since the launcher closes and another app is there, getting 2 icons for the same task. It's a bit annoying, but it works.

1
  • Yes that was my whole issue and reason for the question Feb 1, 2015 at 4:46
1

As DoctorNode already pointed out, apps on removable media cannot be pinned to the taskbar as well. This is still true for Windows 10. There is a simple workaround:

  1. copy the executable you want to pin to any folder on a hard disk - this way you alread get a right name and icon.

  2. drag the copied executable to the taskbar, it will happily pin

  3. navigate to "C:\Users\\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\Taskbar" - beware, the 'User Pinned' folder is hidden, but typing the name in the address bar will open it

  4. modifiy the generated shortcuts to the copied exes there: replace executable path and folder name with the ones on removable media and save

Voilà! Your taskbar icons will activate apps/programs on removable media, and they will be active even wenn you start those apps directly, and will gather multiple windows - so all is back to how it should work. You can even unpin from taskbar, but re-pinning requires again the steps outlined above.

0

I just started and pin my eclipse.exe on the taskbar.

Pin Eclipse

And hope this will help also:

Microsoft Answers

6
  • 3
    Post a link to your image on an image sharing site, and we'll put it in for you.
    – user3463
    Jun 13, 2012 at 6:33
  • However this is not the answer, you didn't get what OP asked?
    – avirk
    Jun 13, 2012 at 6:52
  • I get what he ask and just showed with my eclipse. Also i can pin every single program that i have current installed. Jun 13, 2012 at 6:54
  • 1
    However im not asking if you can pin them, im asking why some programs might not be able to be pinned? Also i can pin most programs to my task bar, just not all Jun 13, 2012 at 7:05
  • 2
    Ok, check this. Here is explained why some programs and files can`t be pin. registry edit Jun 13, 2012 at 7:17
0

I'm going to add some additional conditions that prevent the adding of some programs to the taskbar in the windows environment.

  1. One of which has to do with reserved hot-words that are contained in the file-name. Windows prevents file-names with the following list of words from being pinned to the taskbar:

Documentation;Help;Install;More Info;Readme;Read me;Read First;Setup;Support;What's New;Remove

  • Found in registry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileAssociation\AddRemoveNames

Presumably this is to prevent useless/unnecessary files from being pinned to the taskbar. I have no source for that reasoning, it is my own. Additional information can be found at this link.

  1. The other thing that prevents pinning to the taskbar, is when a program is installed on removable memory - an SD card or USB. This problem plagued me for a while, until I discovered the cause.

Hope this helps any others who are having this issue.

Cheers

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .