CMD copy command

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

remove the forward slash so

copy *.png src
1

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

copy *.png /src
1

If the src subdirectory exists...try

copy *.png .\src\*.png
2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like