我有一個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