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

how can I copy all .png files in my current directory to a folder in my current directory called "src"?

I tried this code:

copy .*.png /src 

and it didn't work for me.

share|improve this question

migrated from Apr 27 '11 at 17:35

This question came from our site for professional and enthusiast programmers.

remove the forward slash so

copy *.png src
share|improve this answer
We have a winner! – Linker3000 Apr 27 '11 at 19:27

You had an extra period in the source, try this :

copy *.png /src
share|improve this answer
..and that states src is off the root and not a local subfolder - remove the slash. – Linker3000 Apr 27 '11 at 19:25

If the src subdirectory exists...try

copy *.png .\src\*.png
share|improve this answer
Way overcomplicated – Linker3000 Apr 27 '11 at 19:26
... but nonetheless correct where other answers placed the target directory in the root directory, and also not prone, as other answers are, to silently doing something quite different to what the questioner desired whenever there's no directory named "src". – JdeBP May 16 '11 at 11:44

You must log in to answer this question.

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