BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

Batch Converter (PNG to VSS)

Started by Dmitry, February 09, 2009, 06:38:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


First - a BIG THANK YOU to Dimitry! :-)

I had version 5.0 - this is version 5.4. Thanks again!

Now my findings:

There are problems with png2vss. These are not major problems or anything like that - more of a "Gotcha!" kind of problems with it. I'm posting these here to maybe help someone else who comes along after I am gone.

1. Directory structure. Under Windows 98se - Microsoft switched how a pathname could be separated. It used to be it had to be a backslash (\). Starting under Windows 98se Microsoft made it so you could use the blackslash or a forwards slash (/). I was trying to write a batch script and tying "/" is a lot easier than "\". Further, I was using PHP to write the script. So since PHP thinks a "\" means the next character is escaped (like a new line is "\n") - it stands to reason to use the "/". Anyway, IF YOU USE IT then png2vss will not work correctly. For some reason VB seems to think it is some kind of shortcut to some other location. In my case it sent the output to "C:/Windows/System32" directory. To be truthful - I have no idea why it really does this but it has to be something in VB.

2. There are two options "/F" and "/O". "/F" is for the files to read and insert into the library you are creating and "/O" is for the output. The output one has more problems. If you just run the program and then click to set the output file - the program will - if you leave it off - add a ".vss" to the name of the file. Batch life is different. Batch life YOU have to put the ".vss" onto the file. Otherwise - you wind up with an unknown file type. This isn't a biggie - just remember to always put the ".vss" onto the output file name and you will be ok.

3. The "/S" option. This option tells png2vss to run automatically. I would have thought it always would - but then that's just me. Now - here is the problem though. The program will not automatically close once it is through. You see - there is a check box for that. So BEFORE you start a batch job - bring up png2vss and check the "Close When Done" checkbox.

4. Batch files don't really work. What I mean is - I have about 2,000 image files that I wrote a PHP script to break up into chunks of 36 images each. (Yeah - lot of files there!) This program wrote out a batch script called t.bat. Imagine my surprise when I run t.bat and it runs the first command, finishes, and then .....dies. Yes. Kicked it right out of the batch script. So I'm like "Ok - I'll try it again". Dies. Take out that first command and run it again. Dies. I am not certain why it does this - it just does. My solution was to instead issue a separate SYSTEM command in PHP and send the command to it. It then dies, returns to the PHP script, which then continues to the next file. Again - no idea why it does this. Probably something to do with VB doing some kind of clearing of everything when it exits.

5. More options. Yes! Lots more options would be great! Here is a partial list:

5.1 "/C". Close When Done
5.2 "/US" Update Stencil
5.3 "/OS" Open Stencil
5.4 "/ST" Show Tooltips
and many more.... Basically, it would be nice to be able to do any of the options the program has from the command line.

So overall - this is an absolutely fantastic program! Just keep these things in mind when using them and I am really hoping Dimitry, if nothing else, puts in the extra options. Especially the "/C" option.

That's it! Have fun!


anyone know where i download this from?


Aren't the links on the first page working?

The author's LinkedIn seems to be (but not sure):

You could try pinging the author maybe?

BTW the app is .NET, and it's tiny, decompiling it with dotPeek or ILSpy for example is like 5 minutes
You may need to ask permission from the author before doing so though as it seems he did not specify any license terms.


Aren't there zip files attached???  Should have everything needed.  I haven't tried it as the need never arose.

Edit:  OK.  The zip files do not have the latest version.  Guess I should've verified first.
Visio 2019 Pro

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 225 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1105KB.
Tokens: post-login.
Cache hits: 14: 0.00138s for 26,764 bytes (show)
Cache misses: 3: (show)
Queries used: 16.

[Show Queries]