The command to change dot file into png file is as follows :

DIRECTORY_TO_DOT\dot -Tpng -O "DOT_FILE"

I have a batch file builddot.bat

del "%1.png"
"%~dp0dot" -Tpng -O "%1"

I installed graphviz, and put the builddot.bat in the same directory where dot.exe is located.

And for the dot file, I setup so that builddot.bat is launched with .dot file.

However, when I click the dot file nothing happens. When I run batch file in command line, it works well.

What's wrong with this? I use Windows 7.

enter image description here

link|improve this question

74% accept rate
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.