Does the batch file have to create a text file or could you change it so that it ECHOs the output instead? There is a way to obtain ECHO results using mIRC which I'd be happy to help with.