I was recently testing out a batch file that was written for cmd, and trying to add some TCC fanciness around it to make it work a little better.
In essence, the script will launch a program and it's assigning affinity and node to each one so they run on their own core.
The unusual thing started out because cmd.exe expects an argument like "/affinity 4 /node 1", but TCC expects an equal sign after affinity, so just for a TCC batch, I have to change it to "/affinity=4 /node 1"
It's also confusing because at first I thought that if affinity needed an equal sign, well, node must also, but nope. :) The documentation does indicate the correct syntax, it's just oddly inconsistent, and especially inconsistent with cmd.exe syntax, requiring that equals sign.
Maybe it's not a huge deal, and if I go further and migrate this to a purely tcc solution, there are plenty of other things that would make this a "tcc only" batch file (should probably rename it to a btm).
I just wondered if this was by design or oversight, and is it a big deal? Anyone else have problems with it? In my case it especially comes up if I'm in a tcc shell anyway and just wanted to test out the original, I'd get errors without that "=" in there, so even if I just wanted to run it as-is, I couldn't. And I can't fix it for tcc because the other admin on the system just uses plain cmd.
Thoughts? Is it worth bugging Rex to see if he can make that "=" optional in future builds so it's cmd.exe compatible?
In essence, the script will launch a program and it's assigning affinity and node to each one so they run on their own core.
The unusual thing started out because cmd.exe expects an argument like "/affinity 4 /node 1", but TCC expects an equal sign after affinity, so just for a TCC batch, I have to change it to "/affinity=4 /node 1"
It's also confusing because at first I thought that if affinity needed an equal sign, well, node must also, but nope. :) The documentation does indicate the correct syntax, it's just oddly inconsistent, and especially inconsistent with cmd.exe syntax, requiring that equals sign.
Maybe it's not a huge deal, and if I go further and migrate this to a purely tcc solution, there are plenty of other things that would make this a "tcc only" batch file (should probably rename it to a btm).
I just wondered if this was by design or oversight, and is it a big deal? Anyone else have problems with it? In my case it especially comes up if I'm in a tcc shell anyway and just wanted to test out the original, I'd get errors without that "=" in there, so even if I just wanted to run it as-is, I couldn't. And I can't fix it for tcc because the other admin on the system just uses plain cmd.
Thoughts? Is it worth bugging Rex to see if he can make that "=" optional in future builds so it's cmd.exe compatible?