command to cut and copy the sub directories and files to specified directory in windows
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
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.
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
XCopy is old-school, Robocopy's where it's at
robocopy C:\test C:\demo /MIR
Use Xcopy
xcopy c:\test c:\demo /e /h
精彩评论