My task here is to pin two shortcuts to the taskbar by batch script.
I have a script adapted from here, creating two shortcuts in %APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\, and it works well. Unfortunately my taskbar doesn't notice them being created and therefore doesn't show them.
How do I tell the taskbar to update itself, adding those shortcuts?
It's about Win10 PCs.
Edit: I tried it with pinnerjs.bat, it seems there is a strange problem: Its contextmenu doesn't see the same items as my contextmenu. Made pictures to illustrate. The item I need executed is "An Taskleiste anheften", the one directly below "Edit with Notepad++".
I can live with using pinnerjs if we get it to work, but I'd prefer a more direct solution (telling the taskbar to add the shortcuts in its folder).
Edit 2: Tried changing the pinnerJS script from saying "taskbar" to the german "taskleiste" - didn't work.