【发布时间】:2013-10-16 16:47:21
【问题描述】:
我正在尝试循环执行固定次数,但我发现我似乎无法使用此语句
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.
我的格式正确吗?
【问题讨论】:
标签: file batch-file scripting dos