- 1). Click the Windows "Start" button and select "All Programs." Click "Microsoft .NET Framework" in the main menu, then click "Visual Studio" to open the software.
- 2). Press the "Ctrl" and "O" keys to open a dialog window. Double-click your VB.NET project name to open the code and forms in your Visual Studio designer.
- 3). Double-click the form file you want to use to copy the folder. After the form loads in the VB.NET designer, right-click the form in the designer and select "View Code."
- 4). Scroll down the code to the location where you want to copy the folder. Type the following code:
Directory.Move("c:\directory1", "c:\directory2")
The code above copies "directory1" to the "directory2" folder on the "C" drive. All files in the folder are copied also. - 5). Click "Save" in the toolbar. Click "Debug," then click "Run" in the main menu to execute the new code in the VB.NET debugger.
previous post
next post