zoukankan      html  css  js  c++  java
  • winform如何打开电脑自带小软件

    //打开电脑自带计算器软件
    private void button3_Click(object sender, EventArgs e)
    {
    System.Diagnostics.ProcessStartInfo Info = new System.Diagnostics.ProcessStartInfo();
    Info.FileName = "calc.exe ";//"calc.exe"为计算器,"notepad.exe"为记事本,"mspaint.exe "为画图
    System.Diagnostics.Process Proc = System.Diagnostics.Process.Start(Info);
    }

    //打开电脑自带记事本软件
    private void button2_Click(object sender, EventArgs e)
    {
    System.Diagnostics.ProcessStartInfo Info = new System.Diagnostics.ProcessStartInfo();
    Info.FileName = "notepad.exe ";//"calc.exe"为计算器,"notepad.exe"为记事本,"mspaint.exe "为画图
    System.Diagnostics.Process Proc = System.Diagnostics.Process.Start(Info);
    }

    //打开电脑自带画图软件
    private void button4_Click(object sender, EventArgs e)
    {
    System.Diagnostics.ProcessStartInfo Info = new System.Diagnostics.ProcessStartInfo();
    Info.FileName = "mspaint.exe ";//"calc.exe"为计算器,"notepad.exe"为记事本,"mspaint.exe "为画图
    System.Diagnostics.Process Proc = System.Diagnostics.Process.Start(Info);
    }

  • 相关阅读:
    方法
    成员变量和局部变量
    带参数的方法
    包名规范
    String
    导包
    java基础(十二章)
    java基础(十一章)
    java基础(九章)
    java基础(八章)
  • 原文地址:https://www.cnblogs.com/z55w/p/10635638.html
Copyright © 2011-2022 走看看