Had the need yesterday to move the contents of a directory, without moving the directory to another location on the file system from the command line. Did some fiddling and this did the trick:
FOR /f "delims=" %a IN ('DIR [Source_Dir] /b') DO move
"[Dest_Dir]\%a" [Dest_Dir]
No comments:
Post a Comment