Out of the box, Windows 7 allows you to pin programs to the taskbar. In later versions of Windows like Windows 8 and Windows 10, Microsoft allows the user to pin folders and settings to Start but not the Taskbar. In this article, we will see how to pin a file to the taskbar in Windows 10.
By default, Windows 10 does not allow the user to pin files to the taskbar. However, there is a trick which can help you to bypass this limitation.
The idea behind the trick to pin files to the taskbar is simple - since you can already pin executable files to the taskbar, you can change the extension of the target file to .exe, pin it to the taskbar and then restore the original extension. The shortcut will remain pinned to the taskbar.
Note: If you are using Tablet Mode, icons of pinned apps and running programs will not appear by default. You should enable them manually.
To pin any file to the taskbar in Windows 10, do the following.
- Open File Explorer.
- Enable the Show file extensions option in File Explorer.
- Go to the folder which contains the file you want to pin to the taskbar.
- Rename the target file (select the file and press F2) and change its extension from, let's say ".txt" to ".exe".
- Right-click the renamed file and select "Pin to taskbar".
- Rename the file and restore its previous (original) extension.
- Right-click on the pinned icon on the taskbar to open the context menu.
- In the context menu, right-click the file name and select Properties as shown below.
- The Properties dialog will open. Modify the text value in the Target field and change the extension portion to the original file extension.
- Click on the Change icon button and select a new icon for your pinned file. Click OK and Apply.
- Sign out from your user account and sign-in back in order to apply a new icon to your pinned file. See the following article: Change a pinned app’s shortcut icon on the taskbar in Windows 10.
You are done:
Note: Once you click the pinned file, a new instance of an associated app will open and its icon will appear on the taskbar. This behavior is by design and it's not possible to change it.
Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:
If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!
15 thoughts on “Pin Any File To Taskbar in Windows 10”
Great information and it works but I still wonder why they don’t just let you pin anything you want to the taskbar. I don”t get it.
It’s not the best operating system, it’s only so widely used because it is “the good old” Windows.
And it’s very user-friendly unlike Linux (which is better in some ways).
Another nice one. Found you because I was trying to pin the Google Drive folder to the task bar. Your pin a folder article was really helpful.
Dunno how else I could leave support (aside from subscribing on social media) for this very-written and useful article, so just writing this comment.
Thank you for this, it was very helpful.
You can also simply pin the program that runs the file you want to pin, then via right-cliking and selecting Properties, you can change the path in the Target and Start In fields. And that’s it.
No “Properties” context item of new file on taskbar under Windows 10 Pro RS5 v.1809 and after. A new way will need to be worked out, probably some registry hack of sorts.
Try to press and hold the SHIFT key and then right-click on the file. (If I got you right).
After following the instructions, everything seems to work fine, until the next time I log off and back on. The pinned shortcut is gone. I’m trying to open up the personal.xlsb file for Excel 2016. Since I can’t pin the file to the task bar directly, doing this trick seems to work. But the pinned item is gone the next time I boot up my computer.
I tried this process a few times in order to pin a png file to the taskbar in windows 10, and it didn’t work. I followed the instructions closely each time. Any assistance would be most appreciated.
Strangely I don’t have the “pin to taskbar” option in the right-click menu for a exe file :(
Just drag the exe to the taskbar
If won’t let me drag the .exe down to the taskbar either. I get a red circle with line through it.
Thank you very much!!!