You can set multiple arrays on one line, but the /f parameter only applies to the first one - the others keep throwing an error:
C:\]setarray x[10] y[10]
C:\]setarray x[10] y[10]
TCC: Array variable is already defined "x"
TCC: Array variable is already defined "y"
C:\]setarray /f x[10] y[10]
TCC: Array variable is already defined "y"
This is unfortunate since setlocal strangely doesn't apply to arrays unsetarray'ing each and every one before setarray'ing it is a nuisance. The other choice - multiple settarray /f lines - clutters the code.
C:\]setarray x[10] y[10]
C:\]setarray x[10] y[10]
TCC: Array variable is already defined "x"
TCC: Array variable is already defined "y"
C:\]setarray /f x[10] y[10]
TCC: Array variable is already defined "y"
This is unfortunate since setlocal strangely doesn't apply to arrays unsetarray'ing each and every one before setarray'ing it is a nuisance. The other choice - multiple settarray /f lines - clutters the code.