[Graphviz / dot] Problem using dot in batch script under Windows 7

Hello, i`m new to graphviz and want to use dot with a supplied php-plugin from dokuwiki.

The story: The plugin calls dot inside php via windows batchscript to create an image. The input / output seems a bit tricky for me, because it reads from stdin and writes to stdout. I`ve used it under Linux (Opensuse, Apache 2.4) and it works. Now i will use it inside XAMPP on Windows 7 (PHP 5.6.3, Apache 2.4.10).

My problem is the following: It seems, that the batchcall syntax is not correct, because the Windows shell interprets the double quotes in a wrong way. Below i put the script and hope that someone else here use dot inside a window batchscript. In this case i probably could see, what`s going wrong.

 

Regards Poul Poulsen

The batchscript: "C:\Program Files\Graphviz\bin\dot.exe" -Tpng -Kdot -o"" digraph G { "page-haus:abwasser" [shape=note, label="Abwasser\nhaus:abwasser", color=lightblue, fontname=Arial]; "page-haus:corbels_streichen" [shape=note, label="Corbels Streichen\nhaus:corbels_streichen", color=lightblue, fontname=Arial]; "page-haus:drainage" [shape=note, label="Drainage\nhaus:drainage", color=lightblue, fontname=Arial]; "page-haus:haustuer" [shape=note, label="Haustuer\nhaus:haustuer", color=lightblue, fontname=Arial]; "page-haus:haustür_reinigen" [shape=note, label="Haustür Reinigen\nhaus:haustür_reinigen", color=lightblue, fontname=Arial]; "page-haus:infos" [shape=note, label="Infos\nhaus:infos", color=lightblue, fontname=Arial]; "page-haus:kellergitter" [shape=note, label="Kellergitter\nhaus:kellergitter", color=lightblue, fontname=Arial]; "page-haus:kueche_ww_tropft" [shape=note, label="Kueche Ww Tropft\nhaus:kueche_ww_tropft", color=lightblue, fontname=Arial]; "page-haus:kupferverkleidung_vordach" [shape=note, label="Kupferverkleidung Vordach\nhaus:kupferverkleidung_vordach", color=lightblue, fontname=Arial]; "page-haus:küche_ww_tropft" [shape=note, label="Küche Ww Tropft\nhaus:küche_ww_tropft", color=lightblue, fontname=Arial]; "page-haus:lager_auflösen" [shape=note, label="Lager Auflösen\nhaus:lager_auflösen", color=lightblue, fontname=Arial]; "page-haus:matratzen" [shape=note, label="Matratzen\nhaus:matratzen", color=lightblue, fontname=Arial]; "page-haus:modulküche_cottage_musterküche_ii" [shape=note, label="Modulküche Cottage Musterküche Ii\nhaus:modulküche_cottage_musterküche_ii", color=lightblue, fontname=Arial]; "page-haus:nebengebäude_streichen" [shape=note, label="Nebengebäude Streichen\nhaus:nebengebäude_streichen", color=lightblue, fontname=Arial]; "page-haus:start" [shape=note, label="Start\nhaus:start", color=lightblue, fontname=Arial]; "page-haus:stromanschluss" [shape=note, label="Stromanschluss\nhaus:stromanschluss", color=lightblue, fontname=Arial]; "page-haus:stromhaus" [shape=note, label="Stromhaus\nhaus:stromhaus", color=lightblue, fontname=Arial]; "page-haus:tueren_streichen" [shape=note, label="Tueren Streichen\nhaus:tueren_streichen", color=lightblue, fontname=Arial]; "page-haus:türen_streichen" [shape=note, label="Türen Streichen\nhaus:türen_streichen", color=lightblue, fontname=Arial]; "page-haus:vordach" [shape=note, label="Vordach\nhaus:vordach", color=lightblue, fontname=Arial]; "page-haus:start" -> "page-haus:drainage" [color=navy]; "page-haus:start" -> "page-haus:vordach" [color=navy]; "page-haus:start" -> "page-haus:corbels_streichen" [color=navy]; "page-haus:start" -> "page-haus:infos" [color=navy]; } Error: dot: can't open G Error: dot: can't open {

Recent comments