Wow you're good! The problem was that $dest needed "chomp $dest". So your "\n"
theory was correct.
THANKS!
> From: [EMAIL PROTECTED]
> To: perl-win32-users@listserv.activestate.com
> Date: Wed, 12 Dec 2007 16:15:04 +0100
> Subject: Re: System Calls
>
&
From: Jerry Kassebaum <[EMAIL PROTECTED]>
> On my Windows XP this line:
>
> `copy $source\\$_ $dest`;
>
> will copy files from c:\whatever\whatever\file.ext to the directory
> the Perl script is in, but not to $dest. How do I make it copy to
> $dest?
>
> FYI, $source="c:\\whatever\\whatever"; s
My first thought is "spaces" in the path or file name. Best one is the nasty
"c:\Program
Files" one!
Try this:
my @results = `copy $source\\$_ $dest`;
print "results: @results";
(or use the debugger, I do that a lot for this stuff...
-Stuart
[EMAIL PROTECTED]
770.977.4676
-Original Mess