我有一个FILE STREAM,我想传递给EXE进行处理。这可能吗?C#将FILE STREAM传递到EXE文件
using (FileStream fs = File.Create(path))
{
Addfile(fs, fileinmemory.ToString());
}
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.Arguments = Addfile //filestream from above
p.StartInfo.FileName = "load.exe"; //used withabove argument to be passed into exe
p.Start();
p.WaitForExit();
创建内存映射文件,那么可能你通过另一种方式(除了参数等?) – user999690
不是用'Process'类,不直接反正。 – Oded