1.

Solve : Take the output of one command and use them in another command..???

Answer»

How do I Take the OUTPUTS of this command:

DIR %SYSTEMDRIVE%\DOCUME~1 /AD /B

and for each output name listed do this command:

net localgroup ADMINISTRATORS %USER-NAME% /addfor /f "delims==" %%D in ('DIR %SYSTEMDRIVE%\DOCUME~1 /AD /B') do net localgroup Administrators %%D /add



Discussion

No Comment Found