Hack Forums
[.NET] how i can open file exe from resource? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] how i can open file exe from resource? (/showthread.php?tid=1442179)



how i can open file exe from resource? - dedea - Jul 2, 2011

how i can open file exe from resource?




* - DaRkReD - Jul 3, 2011

drop it to HDD or look up the method deathadder posted for run from res


* - dedea - Jul 3, 2011

Quote:drop it to HDD or look up the method deathadder posted for run from res

can u give me link of that method?

some1 else?

i need that code =(

of launch/open file exe from resource without extarct exe file


* - Pulser - Jul 3, 2011

How hard is it to search?


* - hgdfhsdgdfgdfh - Jul 3, 2011

If its a .NET assembly use:
Assembly.Load(byteArrayOfExeImage).EntryPoint.Invoke(null, parametersAsObjectArray);


* - dedea - Jul 3, 2011

please code for visual basic 2008?


RE: how i can open file exe from resource? - SIM-3933056 - Jul 3, 2018

just this
Code
Dim aakam031 As String = My.Computer.FileSystem.SpecialDirectories.Temp
        Dim akam As String = aakam031 + "filename pashgr"
        IO.File.WriteAllBytes(akam, My.Resources.file name)
        Process.Start(akam)



RE: how i can open file exe from resource? - Nick (Name) - Jul 3, 2018

(Jul 3, 2018 04:25 PM)Mondron Wrote:  just this
Code
   Dim aakam031 As String = My.Computer.FileSystem.SpecialDirectories.Temp
       Dim akam As String = aakam031 + "filename pashgr"
       IO.File.WriteAllBytes(akam, My.Resources.file name)
       Process.Start(akam)

Two things, the OP is closed and this thread is 7 years old. Just why?