Seems like the screenshot is discard. L But you can easily test it for yourself.
C:\> Nslookup.exe %COMPUTERNAME%.%USERDNSDOMAIN% | find /I "Name:" C:\> echo %ERRORLEVEL% From: Servers Alive Discussion List [mailto:[email protected]] On Behalf Of Demeulemeester, Pieter Sent: donderdag 16 januari 2014 10:01 To: Servers Alive Discussion List Subject: RE: [SA-list] External check : piping character It does gives an errorlevel, see screenshot. The question was : can I use a piping character in and External check ? Thanks for the suggestion though. I'm aware of the work around with a script. From: Servers Alive Discussion List [mailto:[email protected] (mailto:[email protected])] On Behalf Of Jason Passow Sent: woensdag 15 januari 2014 18:01 To: Servers Alive Discussion List Subject: Re: [SA-list] External check : piping character The command you described would not output an error level. You can create a batch file or a vbs using that command and an if loop to set the error level. Jason Passow Network Administrator Mississippi Welders Supply http://www.mwsco.com (http://www.mwsco.com) [email protected] (mailto:[email protected]) ph: (507) 494-5178 fax: (507) 454-8104 -------------------------------------------------------------------------------- From: Demeulemeester, Pieter [mailto:[email protected] (mailto:[email protected])] To: Servers Alive Discussion List [mailto:[email protected] (mailto:[email protected])] Sent: Wed, 15 Jan 2014 10:00:19 -0600 Subject: [SA-list] External check : piping character Hi Dirk, Can I use a piping character in an External (errorlevel) check ? Ex. : Nslookup.exe %COMPUTERNAME%.%USERDNSDOMAIN% | find /I "Name:" Kind regards, Pieter -------------------------------------------------------------------------------- Dit bericht wordt verzonden vanuit een e-mailadres voor professioneel gebruik. De verantwoordelijken binnen de organisatie kunnen kennis nemen van alle berichten verzonden naar dit adres. Le présent message est envoyé d'une adresse e-mail pour usage professionnel. Les responsables de l'organisation peuvent prendre connaissance de tous les messages envoyés à cette adresse. This message is sent from an e-mail address for professional use only. The persons in charge of the organisation may take note of all messages sent to this address. To unsubscribe send a message with UNSUBSCRIBE in the subject line to [email protected] (mailto:[email protected]) 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. To unsubscribe send a message with UNSUBSCRIBE in the subject line to [email protected] (mailto:[email protected]) 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. -------------------------------------------------------------------------------- Dit bericht wordt verzonden vanuit een e-mailadres voor professioneel gebruik. De verantwoordelijken binnen de organisatie kunnen kennis nemen van alle berichten verzonden naar dit adres. Le présent message est envoyé d'une adresse e-mail pour usage professionnel. Les responsables de l'organisation peuvent prendre connaissance de tous les messages envoyés à cette adresse. This message is sent from an e-mail address for professional use only. The persons in charge of the organisation may take note of all messages sent to this address. To unsubscribe send a message with UNSUBSCRIBE in the subject line to [email protected] (mailto:[email protected]) 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. -------------------------------------------------------------------------------- Dit bericht wordt verzonden vanuit een e-mailadres voor professioneel gebruik. De verantwoordelijken binnen de organisatie kunnen kennis nemen van alle berichten verzonden naar dit adres. Le présent message est envoyé d'une adresse e-mail pour usage professionnel. Les responsables de l'organisation peuvent prendre connaissance de tous les messages envoyés à cette adresse. This message is sent from an e-mail address for professional use only. The persons in charge of the organisation may take note of all messages sent to this address. To unsubscribe send a message with UNSUBSCRIBE in the subject line to [email protected] 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.
