Administrador Intranet Internet writes..

>opendir DIRDATOS, "i:\\";
>@things_inside_i= readdir DIRDATOS;
>closedir DIRDATOS;
>print "Content-type: text/plain\n\n";
>print "@things_inside_i";
>
>i have this script, and with it i am trying to read inside the 
>machine that has the 'I' letter to my machine.

Drive mappings are something that is configured for each user on the
machine. If your login is ABC and the IIS server is running as
IUSR_Machine then the "I:" drive mapping that you can see as ABC will
not be able to be seen by IUSR_Machine.

Best idea is to use the full UNC path:

  \\remote_machine_name\share_name_that_i_is_mapped_to

Note that in Perl the \ character is an escape character, so you'd be
advised to use forward slashes (which will work) when coding your perl,
eg:

  opendir DIRDATOS, "//remote_machine/share_name";

You'd also be advised to check the success of that opendir, had you done
this originally you would have got a meaningful error message when
trying to opendir the I: drive:

  opendir DIRDATOS, "//remote_machine/share_name" or die "Bad opendir:
$!";

-- 
  Jason King
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to