您好,我正在制作一个打开进程VNC-Viewer的WindowsForms应用程序。
这是我的代码,我将我想要连接的ip作为参数传递并工作。
ProcessStartInfo start = new ProcessStartInfo();
start.Arguments = ipAddr;
start.FileName = AppDomain.CurrentDomain.BaseDirectory + "VNC Viewer";
start.WindowStyle = ProcessWindowStyle.Normal;
start.CreateNoWindow = true;
Process.Start(start);然而,我想知道我是否也可以以某种方式传递密码,这样我就可以在不输入密码的情况下进入(就像将密码作为参数)。
谢谢。
发布于 2019-04-25 16:36:24
根据下面的文档,您可以将配置文件作为参数传递给VNC Viewer,它可以包含主机地址和密码等,因此在准备好文件后,您可以执行以下操作:
start.Arguments = "-config FILE.vnc";https://www.realvnc.com/en/connect/docs/man/vncviewer.html#options
https://stackoverflow.com/questions/55830530
复制相似问题