Developer Function: Server Script: $ps.file.moveFile
## Overview
Use "「$ps.file」" in "[Server Script](/en/manual/table-management-server-script)" to rename or move the specified file.
## Prerequisites
DisableServerScriptFile in "[Script.json](/en/manual/script-json)" must be set to false.
## Syntax
```
$ps.file.moveFile(section, old_name, new_name)
```
## Parameters
|Parameter|Type|Required|Description|
|:----------|:----------|:---:|:---------------------------|
|section|string|Yes|Section name. For details about sections, see "About Sections" in "「$ps.file」". |
|old_name|string|Yes|Old file name. For both Windows and Linux, use "/" as the directory separator. |
|new_name|string|Yes|New file name. For both Windows and Linux, use "/" as the directory separator. |
## Return Value
Returns true if the file was moved, and false if it was not moved.
## Exceptions
If an exception occurs in C#, the server script will throw an exception by putting the exception class name and error message into the Error object.
## Usage Example
The following example changes the specified file name in the web server.
##### JavaScript
```
$ps.file.moveFile('01_develop', 'parts/01_parts.txt', 'parts/01_parts_old.txt');
```
The following example moves the specified file name in the web server.
##### JavaScript
```
$ps.file.moveFile('01_develop', 'parts/01_parts.txt', 'parts_old/01_parts.txt');
```
## Supported Versions
|Supported versions|Body|
|:--|:--|
|1.4.12.0 or later|Added function|
## Related Information
<div id="ManualList"><ul><li><a href="/en/manual/script-json">Set Parameter: Script.json</a><span>10.02.2024 up</span></li></ul></article>
<ul><li><a href="/en/manual/table-management-server-script">Table Management: Server Script</a><span>08.13.2024 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />