for start /b anamoly

Nov 18, 2009
22
0
I was trying to use the following command in a TCC v18.00.32 x64 window on Windows 10 v1909 and after it completed, it didn't refresh the console and after typing Ctrl-C, everything I typed displayed as ^C and clicking the close X button took ten seconds before the window closed. The command worked fine with regular Windows 10 CMD:

for /L %N in (1,1,35) do @start /b ping -n 1 -w 200 10.110.16.%N | findstr -i reply
 
for /L %N in (1,1,35) do @start /b ping -n 1 -w 200 10.110.16.%N | findstr -i reply

Your syntax is wrong (even for CMD, though CMD accidentally works because of a bug in FOR). The correct syntax would be:

Code:
for /L %N in (1,1,35) do (@start /b ping -n 1 -w 200 10.110.16.%N | findstr -i reply)

which works in both TCC and CMD.
 

Similar threads