Running CMD commands from C# -



Running CMD commands from C# -

first of all, searched lot avoid asking duplicate question. if there one, delete question immediately.

all solutions on web suggesting utilize process.startinfo one

how to: execute command line in c#, std out results

i dont want run batch file, or .exe.

i want run commands on cmd like

msg /server:192.168.2.1 console "foo" or ping 192.168.2.1

and homecoming result if there one.

how can ?

those commands still exe files, need know are. example:

c:\windows\system32\msg.exe /server:192.168.2.1 console "foo" c:\windows\system32\ping.exe 192.168.2.1

c# cmd

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

java - Parsing XML, skip certain tags -

c# - ASP.NET MVC Sequence contains no matching element -