E allora ? Usa le virgolette ...

"C:\Programmi\MySQL\MySQL Server 4.1\bin\mysqldump" --opt --u root --password="password" nome_db > "C:\Documents and Settings\Matteo\Desktop\comuni_dump.sql"