I would check what user the web server is running under. Chances are you are getting different credentials when you run it through the browser.
-----Original Message----- From: Angela_work [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 11:50 AM To: [EMAIL PROTECTED] Subject: 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); -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]