windows下剪切子目录和文件到指定目录的命令
我的问题是
我在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
robocopy 与 /MOVE 会移动所有文件,如果使用 /s ,还会移动子目录。
但如果没有 /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.
如果您知道目录名称:
If you know the directory names:
XCopy 很老派,Robocopy 就在它的位置上
XCopy is old-school, Robocopy's where it's at
使用 Xcopy
xcopy c:\test c :\演示 /e /h
Use Xcopy
xcopy c:\test c:\demo /e /h