Need help “system() function problem”

Hello
I create a simple program that need to rename a bunch of files
-
#include <stdio.h>
- int main(){
- int count;
- for(count = 1; count <= 95; count++){
- if(count >= 10){
- system("rename "C:\wamp\www\anime\kenshin\Rurouni Kenshin – %d.mkv" "%d.mkv"", count, count);
- }
- /* For the episodes that have 0 before the number e.g 01..09 */
- system("rename "C:\wamp\www\anime\kenshin\Rurouni Kenshin – %d%d.mkv" "%d.mkv"", 0, count, count);
- }
- return 0;
- }
I always come up on this error "too many actual parameters". I also receive "The system cannot find the file specified."
Can someone help a newbie out?
