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.
The Following User Says Thank You to Amkay For This Useful Post:
@Hassan ok lets say i made a program named p1. i want to make another one named p2 that has a button b1. i want each time i press b1, p1 is created on desktop. i think its clear now even if its a little complicated.
@Jason ok but can you tell me how to do that or is there a tut about it?
@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:
Dim Filename As String = My.Computer.FileSystem.SpecialDirectories.Desktop & "\ExeNameHere.exe"
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.
The Following User Says Thank You to Hassan For This Useful Post: