点晴MIS内部交流论坛 加入收藏
新手上路
论坛搜索
 您的位置:点晴MIS系统问题答疑『 技术文档交流 』浏览当前帖子  
登 陆注 册论坛帮助  

  网站搜索
  搜索范围: 搜索方式: 关键词(可用空格分开)  

  作者及文章信息: 本文热度:6930 % 
admin

积分:74803
等级:网站管理员
文数:13698
注册:2004-7-20

 信息   留言   主页   编辑   引用    

楼 顶 

 c# process.start exe后面带参数


<div style=""><pre id="best-content-607783732" accuse="aContent" class="best-text mb-10" style="margin-top: 10px; margin-bottom: 10px; padding: 0px; font-family: ''PingFang SC'', ''Lantinghei SC'', ''Microsoft YaHei'', arial, 宋体, sans-serif, tahoma; white-space: pre-wrap; word-wrap: break-word; font-size: 16px; line-height: 29px; color: rgb(51, 51, 51); min-height: 55px;">System.Diagnostics.Process.Start("程序的路径", "参数1 参数2");<br style="content: ""; display: block; width: 700px; height: 0px; margin: 20px 0px;">第一个参数是aaa.exe 的路径,第二个参数是用空格分开的两个参数组成的字符串。<br style="content: ""; display: block; width: 700px; height: 0px; margin: 20px 0px;">aaa.exe中的main方法写做<br style="content: ""; display: block; width: 700px; height: 0px; margin: 20px 0px;">static void Main(string[] args)<br style="content: ""; display: block; width: 700px; height: 0px; margin: 20px 0px;">用Process.Start启动aaa.exe时main方法的args参数就是Process.Start传入参数用转换成的长度为2的数组</pre></div>

该文章在 2018/1/31 15:40:19 编辑过

  离 线  2018-1-31 15:40:18 
  本文章共有 0 页, 0 张回文,每页有 10 张回文 >> [ ]
页码:  
Copyright 2003-2024 ClickSun All Rights Reserved