The Copy-Item command duplicates files and directories. Learn to safely replicate your data.
Copying Files
Try the command
Copy a file!
Build the command
Copy-Item -Path [source] -Destination [dest]
Copy a file to new location
Terminal
C:\Users\User>Copy-Item -Path [source] -Destination [dest]
File Duplication
Command Prompt
original.txt
C:\Users\User>ls
Knowledge Check
1 / 1What is the source parameter called?
References
These documentation links provide authoritative details for the commands used in this article.