ping本地回环地址,如果ping通则仅输出OK,否则仅输出NO_OK,无其他信息
怎么用一行命令解决,有没有人解答一下。
ping -c 1 localhost >nul&&echo OK||echo NO_OK