If anyone have any tips, here is the whole code:
Thanks again! =)
Code:#include <stdio.h> #include <stdlib.h> #include <string.h> int main () { char var[9] = {0}; char str[80]; scanf( "%8s", &var ); strcpy (str,"ren C:\\temp\\text.txt text"); strcat (str, var ); strcat (str,".txt"); puts (str); system(str); system("pause"); return 0; }