Try

use File::Copy;

$name = "essai0.flr";
$folder="c:\\archive";

copy($name,"$folder\\$name");

Note that you define the full path to the folder.

John

-----Original Message-----
From: Fabien JACQUET [mailto:[EMAIL PROTECTED]]
Sent: 19 June 2001 10:05
To: [EMAIL PROTECTED]
Subject: Use of File::Copy


Hi all,

I'm trying to use copy($name,$folder.$name), but it doesn't work!
Yet, I've put  "use File::copy" in my program.
I tried with $name = "essai0.flr" and $folder="archive\\" on Win NT4

need some help...

--
Fabien Jacquet




--------------------------Confidentiality--------------------------.
This E-mail is confidential.  It should not be read, copied, disclosed or
used by any person other than the intended recipient.  Unauthorised use,
disclosure or copying by whatever medium is strictly prohibited and may be
unlawful.  If you have received this E-mail in error please contact the
sender immediately and delete the E-mail from your system.


Reply via email to