copyCopy files from one location to another. In PowerShell, this command is an alias of
Copy-Item. This documentation is based on the Command Prompt (cmd) version ofcopy. More information: https://learn.microsoft.com/windows-server/administration/windows-commands/copy.
copy {{path\to\source_file}} {{path\to\target_file}}
copy {{path\to\source_file}} {{path\to\target_directory}}
copy {{path\to\file1 path\to\file2 ...}} {{path\to\target_directory}}
copy {{path\to\source_directory\*}} {{path\to\target_directory}}
copy {{path\to\source_directory\*.ext}} {{path\to\target_directory}}
copy /-y {{path\to\source_file}} {{path\to\target_file}}