[wpkg-users] wmic check

Daniel Dehennin daniel.dehennin at ac-caen.fr
Mon Feb 21 10:59:15 CET 2011


Natxo Asenjo <natxo.asenjo at gmail.com> writes:

> hi,

Hello,

> I have a wmic check that does not get executed, so it never gets done.
>

[...]

> =================
> @echo off
>
> rem if %errorlevel% of this command is 0, then it is a PRIMERGY RX300 S3
>
> wmic computersystem get /format:list | findstr /i "PRIMERGY RX300 S3"
> =================

I had this and found on internet[1] a work around:

#v+
echo '' | wmic  computersystem get /format:list | findstr /i "PRIMERGYRX300 S3"
#v-

Regards.

Footnotes: 
[1]  http://serverfault.com/questions/160933/wmic-hangs-in-cygwin

-- 
Daniel Dehennin
RAIP de l'Orne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20110221/6e593e1d/attachment-0001.sig>


More information about the wpkg-users mailing list