How to run App from stream ?
-
hi i could add exe file to my vstudio solution and set build action to Embedded Resource and by working with resources i could take it to stream . i want to run my exe .. how to that ?? My code is :: string fullName = this.GetResourceFullName("HDCopy.exe");//i want to run this exe Stream stream = this.asm.GetManifestResourceStream(fullName);//load my exe to memory //How to Run My exe from Memory (Stream) ?? private string GetResourceFullName(string resName) { string fullName = null; foreach (string str in this.asm.GetManifestResourceNames()) { if (str.EndsWith(resName)) { fullName = str; break; } } return fullName; }
-
hi i could add exe file to my vstudio solution and set build action to Embedded Resource and by working with resources i could take it to stream . i want to run my exe .. how to that ?? My code is :: string fullName = this.GetResourceFullName("HDCopy.exe");//i want to run this exe Stream stream = this.asm.GetManifestResourceStream(fullName);//load my exe to memory //How to Run My exe from Memory (Stream) ?? private string GetResourceFullName(string resName) { string fullName = null; foreach (string str in this.asm.GetManifestResourceNames()) { if (str.EndsWith(resName)) { fullName = str; break; } } return fullName; }
Is HDCopy.exe a .NET exe?