...::: Matt :::...
Not everything that
is counted
counts, and not everything that
counts can be counted. - A.
Einstein
-----Original Message-----
From: Weir, Jason - Contractor [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 1:27 PM
To: 'Matthew Wagenknecht'; [EMAIL PROTECTED]; Perl-Win32-Admin (E-mail)
Subject: RE: Win32::LanMan question
How I get around that is to put the function inside a subroutine like thissub NetUseAdd{
Win32::Lanman::NetUseAdd(\%Hash) || return;
}Should the function fail it returns out of the subroutine and continues..Jason Weir
ASOCNet Exchange\Automation Administrator-----Original Message-----
From: Matthew Wagenknecht [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 3:15 PM
To: [EMAIL PROTECTED]; Perl-Win32-Admin (E-mail)
Subject: Win32::LanMan questionI'm using Win32::LanMan to enum shares on a range of IPs: Sometimes authenticated to the domain, sometimes through null session.
Here's my issue:
Sometimes the machine will pass back LanMan error messages. 1240, etc. I know what these errors are, but I'd like to just skip them and continue to the next IP. When I get the error, my foreach() loop exits and it ends the script.. Help me see the light!! :c)Please refrain from criticing my coding practices... I'm a security guy, not a coder..(yet)... It's not pretty but it works.. :c)
