Take the 2-minute tour ×

I want to move all files that are returned from:

c:\blah\:> dir *foobar*

into a folder blah\foobar

share|improve this question

migrated from serverfault.com Dec 10 '09 at 9:31


add comment

2 Answers

You could also do move *foobar* <Destination_Dir>

share|improve this answer
+1 - +10 if I could. –  Evan Anderson Dec 9 '09 at 2:22
add comment

From blah\, try:

move foobar\* blah\foobar

If the second blah doesn't exist, you'll need to create it:

mkdir blah

If you were in \foobar, you'd want to go:

move * ..\blah\foobar

as .. represents the folder above the current folder (so c:\blah\..\blah\.\foobar boils down to c:\blah\foobar)

share|improve this answer
add comment

Your Answer


