VB.NET 2010 - Extracting an application resource to the Desktop
问题 I am trying to extract an application resource from My.Resources.FILE I have discovered how to do this with DLL & EXE files, but I still need help with the code for extracting PNG & ICO files. Other file types also. (If possible) Here is my current code that works with DLL & EXE files. Dim File01 As System.IO.FileStream = New System.IO.FileStream("C:\Users\" + Environment.UserName + "\Desktop\" + "SAMPLE.EXE", IO.FileMode.Create) File01.Write(My.Resources.SAMPLE, 0, My.Resources.SAMPLE.Length