Manoj,
If you insist on running IPconfig, then you can just pipe it into a
file, like so:
ipconfig /all > ipconfig.txt
And it will create a file, ipconfig.txt, which you can then do what you
want with.
However, you can get all of the information programatically, which is
much better than parsing apart a text file.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Manoj Nair said:
Hi,
How can I get the output of IPConfig into a text file in c#
thanks
Manoj Nair