External Rule
Hi,
I have written a VB script to trawl through the Event logs looking for specific events in a certain time frame without the need to clear or archive the logs. However when I launch it as a enxternal command it fails. If run as a Test settings it simply sits there and does nothing. I have an echo back to screen with a value and entered in the expected result that value but nothing just simply fails.
Were am I going wrong.
Thanks
I have written a VB script to trawl through the Event logs looking for specific events in a certain time frame without the need to clear or archive the logs. However when I launch it as a enxternal command it fails. If run as a Test settings it simply sits there and does nothing. I have an echo back to screen with a value and entered in the expected result that value but nothing just simply fails.
Were am I going wrong.
Thanks
This discussion has been closed.
Comments
2/ See forum thread on feature request you posted
When you exit the VB script you need to get it to output a value ?
WSCRIPT.QUIT(value)
This passes back to the Batch command a value and can be accessed with %errorlevel%
Batch File Example :--
echo off
cd C:Program FilesServersCheck_Monitoringexternal
cscript check.vbs test //nologo
echo %errorlevel%
Ensure NOTHING else is echoed back or it can fail or pass the check.