@echo offset a=set/p a=请输入要查找的用户名net user %a% >nul 2>nul && echo 存在该用户 || echo 用户不存在.pause>nul#该片段来自于http://www.codesnippet.cn/detail/060920135689.html
来源: http://www.codesnippet.cn/detail/060920135689.html