The `COPY` keyword duplicates files within the bot's drive storage, creating copies in the same or different directories.
---
## Syntax
```basic
COPY "source" TO "destination"
result = COPY "source" TO "destination"
```
---
## Parameters
| Parameter | Type | Description |
|-----------|------|-------------|
| `source` | String | Path to the file to copy |
| `destination` | String | Path for the new copy |
---
## Description
`COPY` creates a duplicate of a file in the bot's storage. The original file remains unchanged. If the destination directory doesn't exist, it's created automatically.
Use cases include:
- Creating backups before modifications
- Duplicating templates for new users
- Archiving files while keeping originals accessible
- Organizing files into multiple locations
---
## Examples
### Basic File Copy
```basic
' Copy a file to a new location
COPY "templates/report.docx" TO "user-reports/report-copy.docx"
TALK "File copied successfully!"
```
### Copy with Same Name
```basic
' Copy to different directory, keeping the same filename
COPY "documents/contract.pdf" TO "archive/contract.pdf"
```
### Copy Before Editing
```basic
' Create backup before modifying
COPY "config/settings.json" TO "config/settings.json.backup"
- [LIST](keyword-list.md) — List directory contents
---
## Summary
`COPY` creates duplicates of files in storage. Use it for backups, templates, archiving, and organizing files. The original file is preserved, and destination directories are created automatically.