question on copy file from map drive

Hi all,

I have cgi.pl file in internet server. I would like to copy a log file(read
only file) in J:\ (which I map it to the other server) to my d:\temp folder.
With the following code, I got "can't open input : Permission denied"
message when I open th cgi.pl file thru IE browser. How could I get
Permission?  Thanks.

Angela

$output_file_name="d:\\temp\\copy_log.txt";
$input_file_name = "j:\\status.log";
open (COPY_FILE, ">$output_file_name") || die ("can't open output:$!");;
open (FILE, "<$input_file_name") || die ("can't open input:$!");
while (<FILE>) {
 print COPY_FILE $_;
 }
close (FILE);
close (COPY_FILE);




0
achan_work
1/27/2003 7:38:39 PM
perl.beginners.cgi 3839 articles. 0 followers. Follow

0 Replies
453 Views

Similar Articles

[PageSpeed] 16

Reply: