NET USER sucks bigtime.. but still:It redirects output to CON when it finds a user (where you can pipe to find without any problem), but to the ERROR stream (or whatever the heck that used to be called - Shawn? *grin*).
NET USER nonexistentuser /DOMAIN 1>CON 2>NUL |FIND "whatever" would not return that IRRITATING "username could not be found" message OVER your pipe to FIND
So:
code:
SHELL '%comspec% /c NET USER WHOEVER /DOMAIN 2>NUL | FIND /c "whatever" | CHOICE /c:01 /n'
Could set the errorlevel of kix correctly without having to write to a file AND keeping the screen clean.
*phew*
Ramon I-REFUSE-TO-WRITE-DUMMY-FILES de la Fuente
Or should I go for: Ramon I-REFUSE-TO-COOPERATE-IN-ANY-THREAD-LIKE-THE-PROGRESS-BAR-THREAD de la Fuente??

[ 08 August 2001: Message edited by: Fuentez ]