Cmd Copy Command

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

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

Elena Rostova
Author

Elena Rostova

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.