0

I want to collect all images and movies in one folder. I try to type in Windows XP CMD:

set nowy="c:\nowy"
mkdir %nowy% 
for /R %f in (*.mpg *.swf *.jpg) DO (copy "%f" %nowy%)

but it seems that if I am on C%cd%=C:), the system tries to copy files also from... c:\nowy to c:\nowy and it's asking if they should be overwritten.

Is there a more convenient way?

1
  • What, exactly, are you trying to do?
    – Hello71
    Dec 2, 2011 at 21:27

1 Answer 1

0

Not the most elegant solution, but you can suppress that prompt with copy /Y "%f" %nowy%

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .