xcopy /s /i /y "D:\Release\MyDirectory" "D:\Log\MyDirectory"
rd /s /q "D:\Release\MyDirectory"

 

以上命令把D:\Release\MyDirectory文件夹拷贝到D:\Log\MyDirectory文件夹

然后删除D:\Release\MyDirectory

 

xcopy可以拷贝文件,move命令不支持跨盘符,xcopy好用一些。

rd命令可以删除文件夹

相关文章:

  • 2022-12-23
  • 2021-08-30
  • 2022-12-23
  • 2021-12-03
  • 2022-12-23
  • 2021-08-17
  • 2021-08-11
猜你喜欢
  • 2021-09-26
  • 2022-12-23
  • 2021-06-19
  • 2022-02-17
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
相关资源
相似解决方案