|Working on a script that reads some file names from a .txt list.|
The user can issue a "reload" command to reload the names.
when reloading, the script gets the old name count:
for /f "tokens=1" %%A in (c.tmp) do set oCount=%%A
del /q c.tmp
Then after reloading the name list, it runs this to determine if any names has been removed or added:
set /a _a1=!counter!-!oCount!
if !_a1! LSS 0 set _b1=!_a1:-=! && set add=1
if !_a1! GTR 0 set add=0
set _b1=!_b1: =!
if !add!==0 Echo !_b1! command^(s^) unloaded. && goto cont
if !add!==1 Echo !_b1! new command^(s^) loaded. && goto cont
if !add!==-1 Echo No commands changed. && goto cont
However, in this part, it outputs "missing operand".
How can I fix this?
99 little bugs in the code,
99 little bugs.
Take one down, patch it around,
129 little bugs in the code.
message edited by RainBawZ