|If you look at this lline:|
for /f "tokens=*" %%D in (#) do echo del "%%D\*.jpeg"
from #5 you may notice that because of the "echo" it doesn't *DO* any deletion, but simply verifies that it's on tyhe right track. I did this to keep from creating a loose cannon.
Edit out the "echo" from that line and I think it will work.
BTW doing a global delete after a CD is a BAD idea. If the CD fails, you've got trouble.
If at first you don't succeed, you're about average.