• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
 
Date Written: 18 March 2009
Rename a Directory using a VB.NET Program
Jennifer Lewis
 
Rename a Directory using VB.NetPage 2Date Written: 18 March 2009
Overview
While it’s quite simple to rename a directory using Windows Explorer, you may find a need toprogrammatically rename a directory. For example, you may be creating a Setup andDeployment project where you have to back up the contents of a directory before you install theapplication, or you may need a way to rename directory with little to no human interaction.This instruction will be using Visual Studio 2008 to write the code. However, you may use VisualStudio 2005, SharpDevelop or the SDK and a text editor to write the code, but you may have toalter the directions slightly for your development environment.
Instructions
1. Open Microsoft Visual Studio 20082. Select File New Project3. Under Visual Basic, select Console Application
 
Rename a Directory using VB.NetPage 3Date Written: 18 March 2009
4. Do the following:a. In the Name field, name your project. In this illustration, the project will be calledBackupADirectoryb. In the Location field, select the directory where you want to put the project. If youwant to leave the project in the default directory displayed in this field, don’tchange this information. In this illustration, the project will be left in the defaultdirectory.c. If you want to create a separate directory for the solution, leave the Createdirectory for solution box checked. In this illustration, the project will create adirectory for the solution.5. Click OK
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...