CMD Copy Command
in this article your going to learn copy commands but remember to practice all of commands with your windows computer.
Copy a Single File
To copy a single file from one location to another:
Example:
CMD Copy Command
in this article your going to learn copy commands but remember to practice all of commands with your windows computer.
To copy a single file from one location to another:
bashcopy C:\path\to\file.txt D:\path\to\destination
Example:
bashcopy C:\Users\John\Documents\file.txt D:\Backup
Copy Multiple Files
To copy all files of a specific type (e.g.,
.txt
files):bashcopy C:\path\to\*.txt D:\path\to\destination
Example:
bashcopy C:\Users\John\Documents\*.jpg D:\Photos
Copy a Directory
Use the
xcopy
command to copy entire folders:bashxcopy [source_folder] [destination_folder] /E /H /C /I
Flags:
/E
: Copy all subdirectories (including empty ones)./H
: Copy hidden and system files./C
: Continue even if errors occur./I
: Assume the destination is a directory.Example:
bashxcopy C:\Users\John\Documents D:\Backup /E /H /C /I
0 Comments