Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 system and network administrators.

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .