[Help] Write a command to CMD

noname007

Пользователь
Регистрация
19.04.2018
Сообщения
42
Благодарностей
2
Баллы
8
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.
Код:
Process p = new Process();
p.StartInfo.FileName ="C:\Windows\System32\cmd.exe";
p.StartInfo.Arguments = "/c rasdial Viettel \disconnect";
p.WaitForExit(99999);


Could you give to me a c# code to write somthing to CMD? please.
 
Последнее редактирование:

noname007

Пользователь
Регистрация
19.04.2018
Сообщения
42
Благодарностей
2
Баллы
8
problem solved.
Thanks
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)