Works the same. The name of the png file has to be the same as the name of your script. E.g. the name of icon for the script "batch render.cs" would be "batch render.png"
My apology for losing track of this thread and not responding until now.
This is exactly how I added icon to .js scripts, but for whatever reason back then, I couldn't get the icon to be recognized even after Rescan Scripts and closing and opening Vegas. Obviously I was doing something wrong, but this is so simple!!!
Glad it's working. The key to getting the png files to work as taskbar icons is that the size must be 16 x 16, the background layer has to be transparent and the name must be the same as the script name. The requirements are described in the Vegas Pro SDK FAQ.
Thanks wwaag, that is exactly what my custom icons are, 16x16, transparent, same name. I just cannot explain why it didn't work, and therefore I asked the question. I was obviously doing something wrong, and it is so simple, now I have no idea what I was doing to prevent, or make me think it didn't work when I first tried it. Maybe if I had read the Vegas Pro SDK FAQ, I would have gotten it right the first time. Thank You again for the time and answer I needed.