in reply to Re: copying files with system()
in thread copying files with system()
I get this error: Usage: copy(FROM, TO , BUFFERSIZE) at C:\scripts\perl\GetLogFiles2.pl line 9. Does anyone know what i am doing wrong?#!D:\perl\bin\perl use File::Copy; $listFile = "list.txt"; open(LIST, $listFile) || die "Cant open $listFile : $!"; while(<LIST>) { copy("\\\\$_\\c$\\testtxt.txt,C:\\resologs,"); } close(LIST);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: copying files with system()
by lshatzer (Friar) on Jul 20, 2001 at 01:46 UTC |