directory class : MoveTo(string) method
Description
Moves the directory to the specified path.
Syntax
directoryInstance.MoveTo(string destination)
Arguments
Class | Name | Description |
string | destination | Path of the destination. |
Return value
None
Sample code
1: | directory dir = new directory("c:\somewhere..."); |
2: | dir.MoveTo("c:\destinationpath..."); |
Notes
It's a wrapper of the System.IO.DirectoryInfo.MoveTo(String) method.