I want to move all files that are returned from:

c:\blah\:> dir *foobar*

into a folder blah\foobar

link|improve this question

36% accept rate
feedback

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

This question came from our site for system administrators and desktop support professionals.

2 Answers

You could also do move *foobar* <Destination_Dir>

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

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)

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.