小编Kar*_*ath的帖子

想要隐藏cmd提示屏幕

我开发了一个实用程序,它将获得列表中所有服务器的时间.

System.Diagnostics.Process p;
string server_name = "";
string[] output;
p = new System.Diagnostics.Process();
p.StartInfo.FileName = "net";
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StandardOutput.ReadLine().ToString()
Run Code Online (Sandbox Code Playgroud)

执行此代码时.Cmd提示屏幕即将到来.我想将其隐藏起来.我能做些什么?

.net c# command cmd

6
推荐指数
2
解决办法
5841
查看次数

标签 统计

.net ×1

c# ×1

cmd ×1

command ×1