# Extract()

extract data out of a compressed file

```
Extract( format=string, source=string, target=string );
```

**Returns:** boolean

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| format | string | Yes | Format to extract - bzip - gzip - tar - tbz (tar bzip) - tgz (tar gzip) - zip |  |
| source | string | Yes | source file or directory with zip files to extract |  |
| target | string | Yes | name of the target directory **Note:** For gzip & bzip format must use the file path as the target |  |

# Examples

```cfml
extract("zip", "D:\test.zip", "D:\zipresult")
```







# Categories

[Zip files](../../categories/zip.md)

# See Also

[Compress()](compress.md), [<cfzip>](../tags/zip.md)