Hello, i was wondering , is it possible to create a form with a button that when we click it, it creates a .exe program in another project at desktop. im not so sure if you got what i mean but i will give more info if you ask. thanks in advance.
GorcK (05-13-2012)


445
Yup, you need to explain clearly. I don't really get it.
@ilikesmeagol

865
Just add the .exe as a resource on your project. Then write that resource to the desktop path using System****.File.WriteAllBytes()
So tear the pieces from the bone,Originally Posted by Jeremy S. Anderson
Like you've torn us apart.
We build bridges, just for burning
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)


445
@ilikesmeagol : Alright. Do what Jason said. First, add the executable you want to be created on the desktop. Then, add these lines to your button:
This code will create the executable you added to your resources on the desktop. Just replace "ExeNameHere" with the desired name. Also, replace ResourceName with the name of the executable you added to resources.Code:Dim Filename As String = My.Computer.FileSystem.SpecialDirectories.Desktop & "\ExeNameHere.exe" IO.File.WriteAllBytes(Filename,My.Resources.ResourceName)
tynab (05-01-2012)


445
Good and NP.
Marked solved.