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)
Title: Win32::LanMan question
- Win32::LanMan question Matthew Wagenknecht
- Re: Win32::LanMan question Weir, Jason - Contractor
- Re: Win32::LanMan question Edward G. Orton
- RE: Win32::LanMan question Matthew Wagenknecht
- RE: Win32::LanMan question Chuck Lawhorn
- RE: Win32::LanMan question Wagner-David
- RE: Win32::LanMan question Matthew Wagenknecht
- RE: Win32::LanMan question Matthew Wagenknecht
