Open a file from resources

evo74

New member
Joined
Oct 19, 2012
Messages
2
Programming Experience
1-3
i have visual basic 2012 and i need to open a file (a .exe more exacly), but i dont know how... i searched a litle and i found that you need to copy the file to a folder and from there open but i dont know how to do that too...
 
i found the solution:
copy the file: System.IO.File.WriteAllBytes("D:\newfile.exe", My.Resources.filename) and then open
 
You really should be simply deploying the two EXEs to the same folder. Extracting an EXE from resources like that is flagged as suspect behaviour by some anti-virus tools.
 
Back
Top