# MoveFile
**EventNames:**
- MoveFile_Restrictions
- MoveFile_Pre
- MoveFile_Post
**Parameters**
| Type | Name | Description |
| -------------------------------------------------------- | ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [File](powervault:code_reference/objects/file) | file | The file which should get / are moved.
**Restrictions and Pre:**
In *Restrictions* and *Pre* you could get the new path by the property `_NewFullPath`.
**Post:**
In *POST* you you could get the old path by the property `_OldFullPath`. |
| [Folder](powervault:code_reference/objects/folder) | parentFolder | The parent folder where the file should get / is moved. |
| bool | successful | **Post**:
The information whether the Web Service call was successful or not is only available in *Post* events. |
**Examples:**\
MoveFile_Restrictions:
```PowerShell
Register-VaultEvent -EventName MoveFile_Restrictions -Action 'RestrictMoveFile'
function RestrictMoveFile($file, $parentFolder) {
#Write event code here
}
```
MoveFile_Pre:
```PowerShell
Register-VaultEvent -EventName MoveFile_Pre -Action 'PreMoveFile'
function PreMoveFile($file, $parentFolder) {
#Write event code here
}
```
MoveFile_Post:
```PowerShell
Register-VaultEvent -EventName MoveFile_Post -Action 'PostMoveFile'
function PostMoveFile($file, $parentFolder, $successful) {
#Write event code here
}
```