Thank you all for the responses, but it capture the text from command dir, and not the stdout put from command.com. Are there any way to capture the stdout from a file? Thank you in advance