## DirectoryInfo::MoveTo method


Moves the directory represented by the current object and all its contentto the specified location.

```cpp
void System::IO::DirectoryInfo::MoveTo(const String &destDirName)
```


| Parameter | Type | Description |
| --- | --- | --- |
| destDirName | const String\& | The new location |

## See Also

* Class [String](../../../system/string/)
* Class [DirectoryInfo](../)
* Namespace [System::IO](../../)
* Library [Aspose.PDF for C++](../../../)
