Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Capture shelled command output

Dear All,
I am using shell and wait method. I am executing a batch file .Now I need to capture the dos output in a text file.How do I?
I am using this (http://www.freevbcode.com/ShowCode.Asp?ID=2605) link for shell and wait
[232 byte] By [danasegarane76] at [2007-11-11 10:05:10]
# 1 Re: Capture shelled command output
You can redirect output to a file in your Shell statement:

Shell "myfile.bat > output.txt"
Phil Weber at 2007-11-11 17:23:12 >
# 2 Re: Capture shelled command output
Dear Phil Weber,
Thanks for your reply.But I am using Shell and Wait.How to do in the link, I have posted
danasegarane76 at 2007-11-11 17:24:12 >