Hello... How to close console window automaticaly (after run command) if errorcode is 0? Ie I like to close it if all thing is ok, but leave it opened if some error ocours. I tried to use VTE but is not practical for my need. (even closing console window at program end is better as I can wait keypres on error in my program.) thanks Slavko.