标签: batch-file stdout
我正在尝试获取批处理(不是bash)命令的stdout。我想这样做......
tasklist /s <server name> | grep -c <Process name>.
输出可以是2。我现在想把stdout用于其他东西。
2
我该怎么做?
答案 0 :(得分:0)
为什么不再输出grep命令的输出?
像这样:tasklist / s | grep -c | other_task