admin管理员组

文章数量:1538748

1、文件不存在

需要查询注册表文件安装路径,部分电脑会不存在,需要更新谷歌浏览器

SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe

不存在的更新谷歌浏览器即可。

string cmdPath = GetChromePath("chrome.exe");
                    //MessageBox.Show(cmdPath);
                    ProcessStartInfo processStartInfo = new ProcessStartInfo(cmdPath);
                    //processStartInfo.FileName = "chrome.exe";
                    processStartInfo.Arguments = url;
                    processStartInfo.UseShellExecute = true;
                    p.StartInfo = processStartInfo;
                    var result = p.Start(); 

本文标签: 文件找不到浏览器系统