Close...
for /f "tokens=1,2,3,4 delims=\" %a in (printers.txt) DO ECHO %d
You are allocating four variables with the "tokens" option. Then we need to declare the first variable as "%a" which means the fourth in the sequence is "%d". Make sense?
Close...
for /f "tokens=1,2,3,4 delims=\" %a in (printers.txt) DO ECHO %d
You are allocating four variables with the "tokens" option. Then we need to declare the first variable as "%a" which means the fourth in the sequence is "%d". Make sense?