April 24, 2013

Copying folders and files

06:34 Posted by Veera Bhadra , 3 comments
int main ()
 int i;
 printf ("\n");
 i = system(" XCOPY [source path] [destination path] [options] ");
 printf ("Returned value is: %d.\n",i);
        return 0;

Copy files and/or directories to another folder. XCOPY is similar to the COPY
command except that it has additional switches to specify both the source and destination in detail.
/s ----copy folders and subfolders
/u----copy files that already exists in the destination
/e----copy folders and subfolders including empty folders
/h----copy hidden folders and files
/a----copy files with the archive attribute set
/D:mm-dd--yyyy ---- Copy files changed on or after the specified date.If no date is given, copy only files whose source date/time is newer than the destination time.

For more options goto


Post a Comment

Please Enter your comment here......