Paradorn

Paradorn

  • 1.7k
  • 51
  • 856

Use Command " for loop copy " not work Folder name contains spaces

Oct 7 2024 10:01 AM

I am  use Command  line in my project  " for loop copy " not work Folder name contains spaces 

Example : 
For /r "C:\Users\MyUser\Desktop\New Folder" %i in (*.jpg) do copy  %~fi "C:\Users\MyUser\Desktop\New Folder\MyFolder" /Y

"New Folder" have contains spaces , The Command not Work

in New Folder 
1.jpg in Folder A 
2.jpg in Folder B

I want copy all files *.jpg to MyFolder

1.jpg
2.jpg

Help me please .
Thank you.


Answers (4)