Brian Borg's answer at technet explains how to Pin a batch file to the Taskbar in Windows 7. I was able to do that in Windows 7 and it worked fine.
But I'm unable to make it work in Windows 8. The explanation doesn't make the syntax clear for adding the path and filename of the batch file. It's been several years since I did it in Windows 7 so I may not have done this part right, but I have tried every combination I can think of.
Here are a few examples I've tried:
"C:\Windows\System32\cmd.exe" "/C" C:\Users\[username]\winbats\dogbones.bat
"C:\Windows\System32\cmd.exe" "/C" "C:\Users\[username]\winbats\dogbones.bat"
"C:\Windows\System32\cmd.exe" /C C:\Users\[username]\winbats\dogbones.bat
C:\Windows\System32\cmd.exe /C C:\Users\[username]\winbats\dogbones.bat
C:\Windows\System32\cmd.exe /C "C:\Users\[username]\winbats\dogbones.bat"
They all open a command prompt, but none executed the batch file.
Does anyone know the correct syntax or another way to pin a batch file to the taskbar in Windows 8?