posts - 609,  comments - 13,  views - 64万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
xxx来源:http://t.zoukankan.com/TBW-Superhero-p-5570650.html
http://t.zoukankan.com/flywing-p-10570063.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#region 安装程序
            try
            {
                //D:\Demos\ConsoleApp1\ConsoleApp1\bin\Debug\netcoreapp3.1\
                //Path.GetFullPath("../../..") = D:\Demos\ConsoleApp1\ConsoleApp1
                string filePath = Path.Combine(Path.GetFullPath("../../.."), "files\\sogou_pinyin_130.exe");
                Process p = new Process();
                p.StartInfo.FileName = filePath;
                //p.StartInfo.Arguments = $"/i {_temp}sogou_pinyin_130.exe /qb-!";
                // /qb显示基本界面 /qb-!或者/qb!- 基本界面无取消按钮
                p.StartInfo.UseShellExecute = false;
                p.StartInfo.RedirectStandardInput = true;
                p.StartInfo.RedirectStandardOutput = true;
                p.StartInfo.RedirectStandardError = true;
                p.StartInfo.CreateNoWindow = true;
                p.Start();
                p.WaitForExit();
                p.Close();
            }
            catch (Exception ex)
            {
                Console.WriteLine("启动失败:" + ex.Message);
            }
            #endregion

  

posted on   邢帅杰  阅读(271)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 提示词工程——AI应用必不可少的技术
· .NET周刊【3月第1期 2025-03-02】
点击右上角即可分享
微信分享提示