Hi, I am trying to create a simple program 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 keep on receiving the "The system cannot find the file specified." message when I run it but I know it is the right path. I have tried using the rename() function but it tells me that I have "too many actual parameters".. Can someone help a newbie out?