ClassSystem.IO.Directory SyntaxDirectory.Move(sourceDirName, destDirName)
DescriptionThe Move method moves a directory and all its contents, including nested subdirectories and their files, to a new location. Usage at a Glance
ExampleThe statement: Directory.Move("c:\folder1", "c:\folder2") moves folder1 to folder2 in the root of the C drive. That is, it moves all items found within folder1 to a new directory named folder2 and removes the original folder1. Version DifferencesVisual Basic 2005 includes a My.Computer.FileSystem.MoveDirectory method that provides similar functionality. See AlsoDirectory.Delete Method |