RE: System Calls

2007-12-12 Thread Jerry Kassebaum
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 > &

Re: System Calls

2007-12-12 Thread Jenda Krynicky
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

RE: System Calls

2007-12-11 Thread stuart arnold
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