thealienz1 has asked for the wisdom of the Perl Monks concerning the following question:
Alright when I run the following code:
# # This example displays all the share points in the entire # visible part of the network. # use strict; use Win32::NetResource; qw(:DEFAULT GetSharedResources GetError); my $resources = []; unless(GetSharedResources($resources, RESOURCETYPE_ANY)) { my $err = undef; GetError($err); warn Win32::FormatMessage($err); } foreach my $href (@$resources) { next if ($$href{DisplayType} != RESOURCEDISPLAYTYPE_SHARE); print "-----\n"; foreach( keys %$href){ print "$_: $href->{$_}\n"; } }
I get the following error and I cannot figure why this is happening... I am guessing windows, but it doesn't seem to be the problem.
Can't load 'C:/Perl/site/lib/auto/Win32/NetResource/NetResource.dll' f +or module Win32::NetResource: load_file:A device attached to the system is not f +unctioning at C:/Perl/lib/DynaLoader.pm line 206. at search.pl line 6 Compilation failed in require at search.pl line 6. BEGIN failed--compilation aborted at search.pl line 6.
My goal is to write a program that scans an entire Windows Network Neighborhood for files and displays them. So, far I have had a rocky start. if anyone has anything to say about my project I welcome any thoughts.
Thanks in advance... jtarchie
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: trouble with Win32::NetResource
by RayRay459 (Pilgrim) on Oct 09, 2001 at 02:19 UTC | |
Re: trouble with Win32::NetResource
by Rex(Wrecks) (Curate) on Oct 09, 2001 at 00:16 UTC | |
Re: trouble with Win32::NetResource
by seigniory (Sexton) on Oct 09, 2001 at 00:57 UTC | |
Re: trouble with Win32::NetResource
by $code or die (Deacon) on Oct 09, 2001 at 05:34 UTC | |
Re: trouble with Win32::NetResource
by thealienz1 (Pilgrim) on Oct 09, 2001 at 06:44 UTC |
Back to
Seekers of Perl Wisdom