## Directory::Move method


Moves the specified entity to the new location. If the entity to move is a directory, it is moved with all its content.

```cpp
static void System::IO::Directory::Move(const String &sourceDirName, const String &destDirName)
```


| Parameter | Type | Description |
| --- | --- | --- |
| sourceDirName | const String\& | A directory or file to move |
| destDirName | const String\& | The new location of **sourceDirName** |

## See Also

* Class [String](../../../system/string/)
* Class [Directory](../)
* Namespace [System::IO](../../)
* Library [Aspose.Page for C++](../../../)
