Run CMD command without displaying it?

前端 未结 4 1041
难免孤独
难免孤独 2021-02-20 09:59

I have created a Process to run command in CMD.

var process = Process.Start(\"CMD.exe\", \"/c apktool d app.apk\");
process.WaitForExit();

How

4条回答
  •  甜味超标
    2021-02-20 10:34

    Try this :

         proc.StartInfo.CreateNoWindow = true;
         proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
         proc.WaitForExit(); 
    

提交回复
热议问题