> ## Content Index
> Fetch the complete content index at: https://www.filipkonopik.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# PowerShell: Copy a File or Folder
- URL: https://www.filipkonopik.com/powershell-copy-a-file-or-folder/
- Published: 2026-07-20T11:18:57.000Z
- Updated: 2026-08-06T05:28:53.000Z
- Author: Filip Konopík
- Tags: Files & Folders

Need to copy a file or folder to another location - backing up before an edit, duplicating a template, or moving files as part of a script? This one-liner copies it directly from the terminal.

Prerequisites:

- Privileges: None
- Module: Built-in, no import needed

Quick Command:

```Powershell
Copy-Item -Path "C:\SourceFolder" -Destination "C:\DestinationFolder"
```

📦

****Want all of them at once?**  
Get every free one-liner from this blog in a single downloadable bundle organized by category, each with full comment-based help. No more copy-pasting one at a time.

[Get the Complete Bundle for $39](https://gum.co/u/oczvkqdc?ref=filipkonopik.com)

How It Works:

- Copy-Item copies the item at the specified path to a new location - it works on both files and folders
- \-Path "C:\\SourceFolder" points to what you want to copy - replace this with the actual file or folder you're copying.
- \-Destination "C:\\DestinationFolder" sets where the copy should be placed.

Pro Tip:

If the source is a folder containing subfolders and files, add -Recurse to copy everything inside it, not just the top-level folder itself:

```Powershell
Copy-Item -Path "C:\SourceFolder" -Destination "C:\DestinationFolder" -Recurse
```