Thanks Garry - I have tested it and it works fine.
Garry Clarke <[EMAIL PROTECTED]> wrote:
if you run 'net use \\servername\sharename' from a commandline and then type 'echo %errorlevel% you will see that a value is returned. 0 = share is ok, 2 = share is not ok.if you use these values in your check within serversalive (i.e. set the external command so that if value returned =2 then raise an alert.-----Original Message-----
From: Ahmed Hassan [mailto:[EMAIL PROTECTED]]
Sent: 09 December 2002 15:23
To: [EMAIL PROTECTED]
Subject: RE: [SA-list] How to Check a ShareThanks Garry - but could you please explain why "if errorlevel = 2 then there is a problem" .Garry Clarke <[EMAIL PROTECTED]> wrote:
setup an external command and use the command 'net use \\servername\sharename'if errorlevel = 2 then there is a problem-----Original Message-----
From: Ahmed Hassan [mailto:[EMAIL PROTECTED]]
Sent: 09 December 2002 14:01
To: Salive
Subject: [SA-list] How to Check a ShareIs there a way I can check the availability of a shared resource on server? I normally do this manually by simply using the command "net view \\myserver".
Thanks
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs
