copy and rename files in a directory in a specific pattern
<p>I would like to copy a file lying in a directory equal to the number of times the other files lying in that directory  and then rename all the new files.</p>

<p>For example, there are 3 files in a directory, filename1.xls, filename2.xls and filename3.xls. I would like to copy Filename1.xls 2 times (as there are 2 files in the directory excluding filename1.xls )and then rename each copied file as filename2.xls and fiilename3.xls. Hope my question is clear. Thanks, AD</p>
