## FileInfo::MoveTo method


Moves the file represented by the current object to the specified location.

```cpp
void System::IO::FileInfo::MoveTo(const String &destFileName)
```


| Parameter | Type | Description |
| --- | --- | --- |
| destFileName | const String\& | The destination file name |

## See Also

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