I want to move all the files and folders inside the folder "C:\Foldertest\" into the folder "C:\Foldertest\target".
And whenever I run this command, it does this for all files and folders except for the "C:\Foldertest\target" folder.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
RoboCopy would be the preferred method:
Robocopy C:\FolderTest\ c:\FolderTest\Target /E /ZB /MOVE /MOT:60
C:\FolderTest, rather than it's contents
/E: Copy subdirectories, including empty ones
/ZB: Use restartable mode; if access denied use backup mode
/MOVE: Move files and dirs (delete from source after copying)
/MOT: Monitor source; run again in X minutes, if changed
/MON: Monitor source; run again when more than X changes seen