Hi Hamilton, If you can find a way to launch your script from the command line with the explicit expression of the associated EXE program + your non exe string, I bet you can do it using a shortcut with the equivalent of that command-line string.
I think the Taskbar (and Startmenu) Pinning, is an area that is still in the pioneering phase. The "pinned-to-taskbar" objects seem to be as different a paradigm as "Shortcuts" when they first appeared.
I have a great fondness for batch files, and I am still struggling to get my essential list "pinned". But it is getting there, after exploring a ton of the posts/tutorials on this forum, Microsoft, the rest of the Internet, and quite a few hours of personal experimentation.
I think I see a dependence on ".exe" files for the purpose of pinning, which strikes me as silly, but there could well be a purpose (e.g. security?) that is just beyond my level of understanding. Whatever, every single item that I have been able to pin has in its properties target, SomethingOrOther.EXE
I have also observed:
1) I cannot pin a data file, but I can pin the command to launch that file from its assoc. .EXE file (cannot pin xxx.HTML, but I can pin "...\Chrome.EXE xxx.HTML...")
2) I cannot pin a folder, but I can pin "explorer.exe D:\MyFolder"
3) I cannot pin a Batch file, but I can pin "CMD.EXE /c (/k,... etc) MyLittleProgram.BAT"
4) When I edit the properties on a Pinned program, (e.g. the icon) it may not stick, but if I make a pinnable shortcut on the desktop, then change its icon, then pin it, I get the desired icon.
5) Frequently, when I have created one of these little non-mainstream pinned items, when it is clicked, it creates a "ghost" object on the taskbar with an unusual icon, rather than the expected "stacking" where I clicked.
Just my fumbling results. If anyone finds a Microsoft "Guide to Pinning" I would love to know about it.