博客
关于我
c#启动本机程序
阅读量:678 次
发布时间:2019-03-16

本文共 481 字,大约阅读时间需要 1 分钟。

添加命名空间:

using System.Diagnostics;

namespace 控制台

{

   class Program

{

       static void Main(string[] args)

{

           Console.WriteLine("please input :1-千千静听,2-IE,3-计算器");

           int cmd = Console.Read();

if (cmd == 49)

               Process.Start("TTPlayer.exe");

else if (cmd == 50)

               Process.Start("IEXPLORE.EXE");

else if (cmd == 51)

               Process.Start("Calc.exe");

Console.ReadLine();

{

{

转载地址:http://isdqz.baihongyu.com/

你可能感兴趣的文章
nginx + etcd 动态负载均衡实践(四)—— 基于confd实现
查看>>
Nginx + Spring Boot 实现负载均衡
查看>>
Nginx + uWSGI + Flask + Vhost
查看>>
Nginx - Header详解
查看>>
Nginx Location配置总结
查看>>
Nginx upstream性能优化
查看>>
Nginx 中解决跨域问题
查看>>
Nginx 动静分离与负载均衡的实现
查看>>
Nginx 反向代理 MinIO 及 ruoyi-vue-pro 配置 MinIO 详解
查看>>
Nginx 反向代理解决跨域问题
查看>>
Nginx 反向代理配置去除前缀
查看>>
nginx 后端获取真实ip
查看>>
Nginx 学习总结(17)—— 8 个免费开源 Nginx 管理系统,轻松管理 Nginx 站点配置
查看>>
nginx 常用配置记录
查看>>
Nginx 我们必须知道的那些事
查看>>
Nginx 的 proxy_pass 使用简介
查看>>
Nginx 的配置文件中的 keepalive 介绍
查看>>
Nginx 负载均衡与权重配置解析
查看>>
Nginx 负载均衡详解
查看>>
nginx 配置 单页面应用的解决方案
查看>>