Add executable files or other files, and then extract it from the program in one line:

What is the benefit of adding and extracting such files?
- Open a new project first, then add the files you want as follows:
- From the solution explorer window
- Open My project
- And select resources
- Then select the type of files and select Other
- Add files and then clicking on the Add existing file
- And select the files you want
- When you want to retrieve files and save them on your computer You only write this line:
My.Computer.FileSystem.WriteAllBytes(OutPutFN, My.Resources.ResourceFN, False)
OutPutFN: a name and location of the file after extraction
My.Resources.ResourceFN: the file that you want to extract
False: If the file exists, do you want to overwrite it?
What is the benefit of adding and extracting such files?
- In terms of safety to the environment of your program, you can keep a copy of the files on which your program, and when you damage one of these files, you can restore it this way ... And this gives your program additional strength.