Pegasus (MVP)
2003-09-07 11:09:04 UTC
Try
net user xxx /del 2>nul
This directs all error output to nul.
net user xxx /del 2>nul
This directs all error output to nul.
Follow Up To: alt.msdos.batch.nt
I need to suppress the error message that appears when trying to remove
a user that doesn't exist on a Windows 2000/XP machine. Using the
net user xxx /delete
or
net user xxx /del
The user name could not be found.
More help is available by typing NET HELPMSG 2221.
net user xxx /del > nul
That works for when it's a success but not when I get the error. Any
ideas? Thanks.
I need to suppress the error message that appears when trying to remove
a user that doesn't exist on a Windows 2000/XP machine. Using the
net user xxx /delete
or
net user xxx /del
The user name could not be found.
More help is available by typing NET HELPMSG 2221.
net user xxx /del > nul
That works for when it's a success but not when I get the error. Any
ideas? Thanks.