Answer the question
In order to leave comments, you need to log in
How to output the result of a CMD query to a file via C#?
You need to output the result of a CMD query to a file via C#.
Answer the question
In order to leave comments, you need to log in
execute "command 2>&1> file"
2>&1 is needed so that errors are also written to the file
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question