1.使用CMD命令来操作
创建 xx.bat文件
编辑添加代码
–kiosk 全屏开启
start chrome.exe --kiosk "http://www.wiracloud.com/wfg/addons/clinic_map/?type=index"
2,指定地址的谷歌浏览器
string url = string.IsNullOrWhiteSpace( ConfigurationManager.AppSettings["Url"])?"http://localhost/": ConfigurationManager.AppSettings["Url"] ;
this.Location = new Point(Screen.PrimaryScreen.WorkingArea.Width-58,3);
this.Opacity =10;
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
startInfo.FileName = Environment.CurrentDirectory + "\\Chrome\\App\\chrome.exe";
startInfo.Arguments = $" --kiosk \"{url}\"";
startInfo.UseShellExecute = true;
startInfo.RedirectStandardInput = false;
startInfo.RedirectStandardOutput = false;
startInfo.RedirectStandardError = false;
startInfo.CreateNoWindow = true;
System.Diagnostics.Process.Start(startInfo);