Passing an argument to cmd.exe

You need to include the “/c” argument to tell cmd.exe what you mean it to do:

proc.Arguments = "/c ping 10.2.2.125";

(You could call ping.exe directly of course. There are times when that’s appropriate, and times when it’s easier to call cmd.)

Leave a Comment