在program.cs文件中,启动应用程序前,

使用

            if (System.IO.File.Exists("QQ.exe"))
            {
                System.Diagnostics.Process.Start("QQ.exe");
            }

便可以实现在启动前先执行其实exe文件,比如升级功能

 

 

也可以将帮助文档做成web页面(选择帮助菜单后弹出web页面)

        }

 

另外还有两个简单应用

System.Diagnostics.Process.Start("shutdown",@"/l");//------------注销计算机 
System.Diagnostics.Process.Start("shutdown",@"/r");//------------重起计算机

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-01
  • 2021-09-16
  • 2021-09-14
  • 2021-09-23
  • 2021-11-29
  • 2022-01-01
猜你喜欢
  • 2021-11-30
  • 2022-02-01
  • 2021-04-06
  • 2021-05-25
  • 2022-01-13
  • 2022-12-23
相关资源
相似解决方案