How i can execute commands of cmd and return the values of this. For example, i execute the command Ipconfig and return a list of interface available
Thanks.
How i can execute commands of cmd and return the values of this. For example, i execute the command Ipconfig and return a list of interface available
Thanks.
You can use the Process.Start()
method to run command-line commands, capture the console outputs, and parse it to get your return values. It's a bit messy but it works.