Windows batch command to move all folders in a directory with exceptions
问题 I am trying to write a Windows Batch file that will allow me to move all directories within a given source directory into a target directory that exists within that source directory. Obviously my move command with need to only apply to directories and also exclude the target directory from being processed. Is this possible with a Windows batch command? 回答1: Robocopy (present in recent versions of windows or downloadable from the WRK) can do this, just use the /xd switch to exclude the target