Any executable can be pinned to the task bar.
In Windows 10 though, pinning folders and/or other types of data files to Start menu is fine, but then choosing to pin them to your Taskbar is not intended - however, it can be achieved with a few steps. Just don't blame me if your taskbar ends up looking like an Apple Mac tablet.
For example:
- Suppose you have text file named Birthdays.txt located on your Desktop
- Open your File Explorer then click File and select Change folder and search options. Next, select the view tab and remove check next to Hide extensions nor known file types then apply change.
- Now, returning to Desktop, right-click on Birthdays and select rename and change the extension from .txt to .exe
- Note: You'll be prompted to confirm your name change. Click yes.
- Next, right-click on Birthdays.exe and select pin to taskbar
- Next, right-click on Birthdays.exe and select rename, then change the .exe back to .txt, and click yes to confirm the change
- Now, press and hold down your SHIFT key while at the same time right-clicking your pinned Birthdays on taskbar and select Properties. Here you will need to edit the Shortcut target, making sure it points to the correct path, and file name with the correct file extension [ in this example that being .txt ] given the Birthdays data file is a text file. If you wanted to you could also choose to change the icon that appears on your Taskbar here too.
- Apply any changes made and you are ready to go.
In this case, clicking on the pinned Birthdays will open this file in Notepad.
That's it -- as to whether its worth doing this -- I'll leave that up to individuals to decide what suits them best.
The same procedure will allow you to pin a folder/directory to your taskbar too!
Regedit32
ps: You'll probably want to change back to hidden extensions for files afterwards too.