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.

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 stackoverflow.com Apr 27 '11 at 17:35

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

3 Answers 3

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

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.