in reply to Re: Re: Network Neighborhood and LWP::UserAgent list directory
in thread Network Neighborhood and LWP::UserAgent list directory

Why not just use a UNC...

#!d:\perl\bin\perl.exe -w use strict; my $server = "192.168.0.5"; # or something my $dir = "\\\\$server\\c\$\\temp"; # open c:\temp on $server opendir (DIR, $dir) or die "cannot opendir $dir"; foreach (readdir(DIR)){ #do something }
I am not sure if this works - I think it does - I know it works if $server is the actual Win32::NodeName(). And I know that you can type "\\ip.address\c$\temp" in the Start > Run dialogue box.

If this fails, then just share the remote path use Win32::NetResource

Of course, all this depends on you having read permissions on the remote machine.

Error: Keyboard not attached. Press F1 to continue.
  • Comment on Re: Re: Re: Network Neighborhood and LWP::UserAgent list directory
  • Download Code