Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

This question came from our site for professional system and network administrators.

add comment

2 Answers 2

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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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