Process compiler = new Process();
compiler.StartInfo.FileName = "csc.exe";
compiler.StartInfo.Arguments = "aaa";请问如何在进程csc.exe 中取到 传来的参数aaa????
谢谢
compiler.StartInfo.FileName = "csc.exe";
compiler.StartInfo.Arguments = "aaa";请问如何在进程csc.exe 中取到 传来的参数aaa????
谢谢
{
string fileName = "";
fileName = args[0];
......
}
如果需要进程间通信方法比较多也稍微复杂,共享内存,邮槽,管道,WM_COPYDATA,sockets等等,baidu下好多相关知识.如果要求不是太高也可以用clipboard类,比较方便