batch-file - 使用批处理文件跨驱动器移动目录

标签 batch-file

我想使用批处理文件将文件夹及其子文件从 C:\ 移动到 D:\

我该怎么做?

最佳答案

我认为没有办法跨驱动器移动文件夹。这种“移动”只是复制后删除。所以你可以这样做:

xcopy c:\example d:\example /S /E
rmdir /S c:\example

关于batch-file - 使用批处理文件跨驱动器移动目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11027928/

相关文章:

用于删除文件并将其复制到多个目录的 Windows 脚本

batch-file - chcp 65001 和 .bat 文件

python - 如何使用 python 停止程序的执行?

android - tools\android.bat 文件不在 android studio 中执行

c# - 如何在 C# 中调用批处理文件 (.bat)?

android - 如何使用批处理文件双击安装apk文件

c++ - 使用 `createProcess()` 调用 Webots 时传递参数

windows - 创建唯一的文件名 Windows 批处理

php - 从php以特定用户身份执行bat文件

windows - .bat 的语法是什么?