Basic DOS commands-7. Copy and move files

1. Copy of files

copy 要拷贝的文件名.扩展名 目标文件名.扩展名
如:copy qingshu.txt huifu.txt  (将qingshu.txt拷贝到huifu.txt)

If you want to copy a file under one path to another directory, just add the path before the file name

copy D:\qingshu.txt C:\huifu.txt (将D盘中的qingshu.txt 拷贝到C盘中的huifu.txt)

If you want to copy a file from another path to the current path:

copy C:\huifu.txt .\ (将C盘中的huifu.txt复制到当前路径下,仍使用原来的文件名)

2. Movement of files

To copy similar files, just change copy to move

Guess you like

Origin blog.csdn.net/Justinhhhh/article/details/112599790