copy a embedded resource in to HDD

demetron

Member
Joined
Sep 18, 2008
Messages
6
Programming Experience
Beginner
I am actually making some kind of patch or you can say update application, so there is a *.exe file which i added as resource(embedded). Now I want when I compile and run the program and click patch the *.exe file copy to a specified
location with overwrite capable.

:confused:
 
Last edited by a moderator:
Hello.

First of all, it's not necessary to write the whole post in bold...it's just annoying.
Second, look at the Type as which the .exe is saved, it's a Byte-Array. Means that all you have to do is open a StreamWriter/FileWriter and feed him with the Resource (My.Resources.yourExeFile).

Bobby
 
There is also this shortcut: My.Computer.FileSystem.WriteAllBytes(...)
 
Back
Top