1

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.

3 Answers 3

7

remove the forward slash so

copy *.png src
1
  • We have a winner!
    – Linker3000
    Apr 27, 2011 at 19:27
0

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

copy *.png /src
1
  • ..and that states src is off the root and not a local subfolder - remove the slash.
    – Linker3000
    Apr 27, 2011 at 19:25
0

If the src subdirectory exists...try

copy *.png .\src\*.png
2
  • Way overcomplicated
    – Linker3000
    Apr 27, 2011 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, 2011 at 11:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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