windows下剪切子目录和文件到指定目录的命令

发布于 2024-08-20 00:14:01 字数 128 浏览 2 评论 0原文

我的问题是

我在 C:\test 中有 3 个目录和 5 个文件,

我想通过 Windows 中的命令行将 C:\test 下的所有文件和目录剪切并粘贴到 C:\demo 。请提前帮助我,

谢谢

My question is

I have 3 directories and 5 files in C:\test

I want cut and paste all the files and directories under C:\test to C:\demo through command line in windows. Plz help me in this

Thx in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

夜清冷一曲。 2024-08-27 00:14:01
robocopy /s C:\test C:\demo /MOVE

robocopy 与 /MOVE 会移动所有文件,如果使用 /s ,还会移动子目录。

但如果没有 /MOVE,它只是将文件从源复制到目标。

robocopy /s C:\test C:\demo /MOVE

robocopy with /MOVE moves all files and if you use /s , also subdirectories.

but without /MOVE it just copy files from source to destination.

简单气质女生网名 2024-08-27 00:14:01

如果您知道目录名称:

move c:\test\directory1 c:\demo
move c:\test\directory2 c:\demo
move c:\test\directory3 c:\demo
move c:\test\directory4 c:\demo
move c:\test\directory5 c:\demo

If you know the directory names:

move c:\test\directory1 c:\demo
move c:\test\directory2 c:\demo
move c:\test\directory3 c:\demo
move c:\test\directory4 c:\demo
move c:\test\directory5 c:\demo
沦落红尘 2024-08-27 00:14:01

XCopy 很老派,Robocopy 就在它的位置上

robocopy C:\test C:\demo /MIR

XCopy is old-school, Robocopy's where it's at

robocopy C:\test C:\demo /MIR
微凉 2024-08-27 00:14:01

使用 Xcopy

xcopy c:\test c :\演示 /e /h

Use Xcopy

xcopy c:\test c:\demo /e /h

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文