I have a pretty simple script that allows you to delete local administrator accounts. My goal is to get rid of all the header / footer information.
So far, I:
FOR /F "skip=6" %%G IN ('net localgroup administrators') DO echo %%G
What an echo:
Administrator MyName The
"The first word in the footer is:" Command completed successfully. "
So I would like to get rid of "The", but I understand that I may have to rebuild the whole script, which is good. I tried to save the variable% str%, but you cannot set multiline variables. In addition, using a txt file as a buffer is not an option.
Any input?
source share