The definition of main function would be:
int main(int argc,char **argv)
create a function that would do the copy file part
then call the function in loop.
example:
int main(int argc, char **argv)
{
for(int i=0;i<argc;i++)>
{
function_to_copy(argv[i],copied_path);
}
}