I am running system test cases for my application. I am using a batch script to do that. I am trying to redirect output from the console to a file using a batch script.I use the > symbol. The prob is that I am running a java command, and the first thing it does is it outputs a welcome message, and then an error message after some processing. I want to capture that error message to the file,but it is only capturing the welcome message. If anybody can help it would be great.