Technology Microsoft Software & solutions

How to Copy a Folder & Its Contents in VB.NET

    • 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.

Related posts "Technology : Microsoft Software & solutions"

How to Import OCX

Microsoft

How to Install Grub From a Fedora Recovery CD

Microsoft

How to Speed Up Streaming in Vista

Microsoft

How to Fix a Disappearing "Start" Menu, "Start" Button and Task Bar

Microsoft

How Do I Modify Startup in Vista?

Microsoft

How to Change Your Name in CP

Microsoft

How to Use WinImage to Create a Boot Disk ISO

Microsoft

How to Get to a BIOS Screen

Microsoft

How to Control Updates on XP

Microsoft

Leave a Comment