Perl is your friend! copy this into your favorite text editor, chmod it to 755, give it a directory, and it'll do it for every file in that directory!
-------
#!/usr/bin/perl -w
use File::Find;
use File::Basename;
find(\&addDocName, $ARGV[0]);
sub addDocName{
if (/\.csv$/) {...