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:\BackupCopy Multiple Files
To copy all files of a specific type (e.g.,
.txtfiles):bashcopy C:\path\to\*.txt D:\path\to\destinationExample:
bashcopy C:\Users\John\Documents\*.jpg D:\PhotosCopy a Directory
Use the
xcopycommand to copy entire folders:bashxcopy [source_folder] [destination_folder] /E /H /C /IFlags:
/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