|How can I do a nest FOR command by piping the 2nd FOR statement|
For /F "tokens=* delims= " %%A in ('net share|Find /I "Netlogon"') DO SET OUTPUT=%%A
For /F "tokens=* delims= " %%A in (%OUTPUT%) DO ECHO %%B
I tried piping the 1st command and add the 2nd for statement but it didn't work. I have to save the output of the 1st FOR statement to a variable and then run the 2nd FOR statement against the variable.