MemoryStream에있는 프로그램을 어떻게 실행하여 하드 디스크에 먼저 저장할 필요가 없습니까? 파일을 하드 디스크에 저장하지 못할 수도 있습니다. 프로그램은 메모리에서 100 % 기능을 수행해야합니다.MemoryStream에서 프로그램 실행
static string strTemplate = "MyAPP.SOMEprogram.exe";
byte[] template;
int len = 0;
Assembly assembly = Assembly.GetExecutingAssembly();
using (Stream stream = assembly.GetManifestResourceStream(strTemplate))
{
len = (int)stream.Length;
BinaryReader reader = new BinaryReader(stream);
template = reader.ReadBytes(len);
}
MemoryStream ms = new MemoryStream(template, true);
이제 MemoryStream (RAM)의 모든 100 % 작동 프로그램이 해당 프로그램을 실행할 수 있습니까? 많은 감사합니다
내가 관리되는 어셈블리를로드하는 것에 대한 이야기가 아니라고 가정합니다. –