Hi, You are probably caught from something similar to this:- http://sources.redhat.com/ml/cygwin-xfree/2003-05/msg00512.html > You are probably suffering from the fact that XWin is running in a separate > process from your .bat. > If you wait until XWin is fully initialised and then run xxxxx you will > be OK. Colin