System.Diagnostics.Process process = new System.Diagnostics.Process(); process.StartInfo.FileName = @"c\windows\sys32\odbc.exe"; process.Start();
using System.Diagnostics; Process pro = new Process(); pro.StartInfo.UseShellExecute = false; pro.StartInfo.FileName = "C:\\MyExe.exe";//要执行的exe文件名 pro.StartInfo.Arguments = "C:\\my.txt";//在exe后面要执行的参数或要打开的文件等 pro.StartInfo.CreateNoWindow = true; pro.Start();
同意 abcynic(门外汉) . 用StartInfo.Arguments 外接參數.
brightheroes(闭关) 说得对
调用exe文件怎么那么麻烦啊!没有直接用ShellExecute函数的吗?
TAIPEI, Taiwan -- Taiwan's parliament has passed legislation allowing the island to hold referendums on sensitive issues such as changing its constitution or official name, despite repeated warnings from China. ======================================================= 台湾台北,-- 台湾议会通过了通过公共投票的方式处理一些敏感问题,象更改宪法,更改官方名称什么的,而不顾中国方面的再三警告
process.StartInfo.FileName = @"c\windows\sys32\odbc.exe";
process.Start();
Process pro = new Process();
pro.StartInfo.UseShellExecute = false;
pro.StartInfo.FileName = "C:\\MyExe.exe";//要执行的exe文件名
pro.StartInfo.Arguments = "C:\\my.txt";//在exe后面要执行的参数或要打开的文件等
pro.StartInfo.CreateNoWindow = true;
pro.Start();
用StartInfo.Arguments 外接參數.
说得对
=======================================================
台湾台北,-- 台湾议会通过了通过公共投票的方式处理一些敏感问题,象更改宪法,更改官方名称什么的,而不顾中国方面的再三警告