if !functionA[%%C]!==1 AND if !functionN[%%C]!=="CPU/Memory" (
echo Running function !functionN[%%C]! on host !lparN[%%B]!...........
REM echo ------------------------------------------------------------------------------ >> Env_Discovery_Lpars_%fullstamp%/Env_Discovery_Lpars.txt
"plink" -t -l %user% !lparN[%%B]! -batch -m ./Env_Discovery_Lpars_CPU_Memory.cmd >> Env_Discovery_Check_%fullstamp%/Env_Discovery_Lpars_!lparN[%%B]!.txt
REM echo ------------------------------------------------------------------------------ >> Env_Discovery_Lpars_%fullstamp%/Env_Discovery_Lpars.txt
echo Finished running function !functionN[%%C]! on host !lparN[%%B]!...........
)
else (
echo FUNCTION: !lparN[%%B]! NOT active, skipping function
echo:
)
脚本运行失败