A
andylcx
Hi all:
I have one question about the system call under Unix system. I would
like to copy all the files in the current directory to a destination
directory using the following code, but it does not work. Any idea?
Thanks in advance!
if (fork() == 0)
{
execl("/usr/bin/cp", "cp", "*.*", "destination", (char*)0);
}
I have one question about the system call under Unix system. I would
like to copy all the files in the current directory to a destination
directory using the following code, but it does not work. Any idea?
Thanks in advance!
if (fork() == 0)
{
execl("/usr/bin/cp", "cp", "*.*", "destination", (char*)0);
}