Sinisterly
Tutorial Dropping an embedded exe resource (Quick and easy) - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Visual Basic & .NET Framework (https://sinister.li/Forum-Visual-Basic-NET-Framework)
+--- Thread: Tutorial Dropping an embedded exe resource (Quick and easy) (/Thread-Tutorial-Dropping-an-embedded-exe-resource-Quick-and-easy)



Dropping an embedded exe resource (Quick and easy) - S3xySmurf - 09-22-2017

I was tinkering around trying to drop an embedded resource, here's what I got, let me know what you guys think.

Code:
using System.IO; using System.Runtime.InteropServices; // Select our drop path string path = Path.Combine(Path.GetTempPath(), "dropped.exe"); // Write all bytes into a new file File.WriteAllBytes(path, Properties.Resources.dropped);