Hello every one.
I want to write a command line to CMD. example " /c rasdial Viettel \disconnect "
But I don't know how to do it.
I don't know C#. I google and found this code. But it is not running.
please teach me how to write a command line to CMD.
Thank you so much.
p/s: it is easy to write to CMD when I used winautomation.
I want to write a command line to CMD. example " /c rasdial Viettel \disconnect "
But I don't know how to do it.
I don't know C#. I google and found this code. But it is not running.
please teach me how to write a command line to CMD.
Thank you so much.
p/s: it is easy to write to CMD when I used winautomation.
Код:
Process p = new Process();
p.StartInfo.FileName ="C:\Windows\System32\cmd.exe";
p.StartInfo.Arguments = "/c rasdial Viettel \disconnect";
p.WaitForExit(99999);