Doesn’t SA only deal with 0 or 1 though to denote success and failure of 
the check? 

 

Your script will return all kinds of values, so SA will either say the check 
failed in the case of a 0 or convert a positive number to a 1 to denote 
failure. 

 

I could well be wrong as I haven’t used the errorlevel check for quite 
some time due to its limitations so it could all have changed. 

 

From: Servers Alive Discussion List [mailto:sal...@woodstone.nu] On Behalf Of 
Jason Passow
Sent: 13 August 2009 21:50
To: Servers Alive Discussion List
Subject: [SA-list] Error Level check 

 

I have an error level check that is not working.   When I run it from the 
command line it works.  When I run it from Server's Alive it gives a 1.  

The check is a batch file that exits with a code.   When run from the command 
line I can echo back the errorlevel and it is correct.  Server's alive always 
returns 1.   Following is batch file:

@echo off 
net use k: \\kms\kerio /yes 
cd k:\store\queue\ 
FOR /f "TOKENS=*" %%F in ('dir /s /b /a-d k:\store\queue\^|find "" /c /v') DO 
SET TOTAL=%%F 
exit %TOTAL%

Jason Passow
Mississippi Welders Supply
http://www.mwsco.com
jas...@mwsco.com
ph: (507) 494-5178
fax: (507) 454-8104



To unsubscribe send a message with UNSUBSCRIBE in the subject line to 
salive@woodstone.nu
If you use auto-responders (like out-of-the-office messages), make sure that 
they are not sent to the list nor to individual members. Doing so will cause 
you to be automatically removed from the list. 
--------------------------------------------------------------------------------



Telephonetics VIP is a limited company registered in England and Wales. 
Registered number: 2831215. Registered office: 7th Floor, Hamilton House, 111 
Marlowes, Hemel Hempstead, Hertfordshire, HP1 1BB. 
 The disclaimer available at: 
http://www.telephoneticsvip.co.uk/telephoneticsvip/emaildisclaimer.jsp 
(http://www.telephoneticsvip.co.uk/telephoneticsvip/emaildisclaimer.jsp) , 
applies to this message and any associated files. 

--------------------------------------------------------------------------------



 

To unsubscribe send a message with UNSUBSCRIBE in the subject line to 
salive@woodstone.nu
If you use auto-responders (like out-of-the-office messages), make sure that 
they are not sent to the list nor to individual members. Doing so will cause 
you to be automatically removed from the list. 

Reply via email to