Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
Class
System.IO.Directory Syntax
Directory.Move(sourceDirName, destDirName)
Description
The Move method moves a directory and all its contents, including nested subdirectories and their files, to a new location. Usage at a Glance
Example
The 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 Differences
Visual Basic 2005 includes a My.Computer.FileSystem.MoveDirectory method that provides similar functionality. See Also
Directory.Delete Method |
Категории