VB - Builder
Hello in this tutorial I will teach you how to make a basic file builder.
For this tutorial you will need:
A file that needs to be built.
Visual basic 2008/2010.
Start by creating a new project and call it Builder:
Now double click your solution in the solution explorer and click on a tab called Resources:
We will now add the file we need to build by clicking the following button:
In this case, I will add a simple exe file called fake virus.
After you added your file, it should now show up in your resources.
Return to the design of your form and add a simple button (Text = Build)
Double click the button and add the following codes:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Myfile As Byte() = My.Resources.Fake_Virus
REM Loads the file from the resources
System.IO.File.WriteAllBytes("NewBuiltFile.exe", Myfile)
REM Writes the bytes to a file on your pc.
End Sub
Now run your application and click the button.
After you clicked the button, a new file called newbuiltfile.exe will appear in the folder where you have run your application.
Download the source codes:
Builder.rar (94,8 kB)
Topic: VB - Builder
No comments found.