0
我想修改下面的腳本來給我出來放像在批處理文件
Number of processes on machine1 are 1
Number of processes on machine2 are 3
Number of processes on machine3 are 7
Number of processes on machine4 are 2
請有人可以幫助使用echo在單行聯合輸出?
===============================
@echo off
setlocal enabledelayedexpansion
pushd "%~dp0"
echo %date% %time%
TASKLIST /S machine1 | grep -c "process"
TASKLIST /S machine2 | grep -c "process"
TASKLIST /S machine3 | grep -c "process"
TASKLIST /S machine4 | grep -c "process"
======== ========================
你在windows下有grep嗎? –
請爲可讀性編輯您的代碼。例如。將任何代碼縮進四個空格。然後,它以灰色突出顯示。 –