---
title: "Move Files"
description: "The Invantive Script statement that moves files matching a pattern."
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/docs/invantive-script/statements/move-files
original: https://documentation.invantive.eu/en/docs/invantive-script/statements/move-files
updated: 2026-08-09T00:00:00Z
license: https://documentation.invantive.eu/en/
---

# Syntax
Files can be moved using the syntax:
```
local move files "SPECIFICATION" to "SPECIFICATION"
```
The specification can contain a directory path. When no directory path is specified, the current working directory is used. The specification must contain a file pattern with the following special characters:
- `*`: sequence of any 0, 1 or more characters.
- `?`: any character.

# Examples
The following example moves (renames) the file `c:\temp\temp1.bin` to `c:\temp\temp2.bin`:
```
local move files "c:\temp\temp1.bin" to "c:\temp\temp2.bin"
```
The following example moves all file with extension `.bin` and name starting `temp` in the folder `c:\temp` to the folder `d:\temp`:
```
local move files "c:\temp\temp*.bin" to "d:\temp"
```