我试图绕过循环固定次数,但是我发现我似乎无法使此语句与
REM @echo off
SET TotalCores=12
SET Sockets=2
SET SlaveNodes=4
SET /A mycores = %TotalCores% / %SlaveNodes%
FOR /L %i in (0,1,%SlaveNodes%) DO (call slavenode.bat %i %mycores)
为什么我会收到以下问题?
SET /A mycores = 12 / 4
SlaveNodesi was unexpected at this time.
我的格式正确吗?