Process p = new Process(); p.StartInfo = new ProcessStartInfo(); p.StartInfo.Arguments = "ff"; p.Start();
获取可以用 foreach(string s in System.Environment.GetCommandLineArgs()) { MessageBox.Show(s); }
Process p = new Process(); p.StartInfo = new ProcessStartInfo(); p.StartInfo.Arguments = "ff"; p.Name="bb.ext"; p.Start();调用程序 class Program { static void Main(string[] args) { string ff=args[0]; }
http://msdn2.microsoft.com/zh-cn/library/acy3edy3(VS.80).aspx
*****************************************************************************
欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码)
http://feiyun0112.cnblogs.com/
Process p = new Process();
p.StartInfo = new ProcessStartInfo();
p.StartInfo.Arguments = "ff";
p.Start();
{
MessageBox.Show(s);
}
p.StartInfo = new ProcessStartInfo();
p.StartInfo.Arguments = "ff";
p.Name="bb.ext";
p.Start();调用程序
class Program
{
static void Main(string[] args)
{
string ff=args[0];
}