How To: Read from list in batch, output contents to log file?

You have a couple of small errors. The "delims=" option must have not an ending space. The %%a replaceable parameter must be used in the same line of the FOR command; if it is used in a different line, must be delimited by parentheses that begin in the FOR command, but in your case this is not neccessary because you want to execue just one command in the FOR.

The TASKLIST command should be executed with each line of the text file. Finally, the FINDSTR command look at those results for iexplore. Exe echo off set MachineList=computers.

Log FOR /f "delims=" %%a in (%MachineList%) DO tasklist /s \\%%a >>results. Log findstr /i iexplore. Exe results.log.

You have a couple of small errors. The "delims=" option must have not an ending space. The %%a replaceable parameter must be used in the same line of the FOR command; if it is used in a different line, must be delimited by parentheses that begin in the FOR command, but in your case this is not neccessary because you want to execue just one command in the FOR.

The TASKLIST command should be executed with each line of the text file. Finally, the FINDSTR command look at those results for iexplore.exe. @echo off set MachineList=computers.

Log FOR /f "delims=" %%a in (%MachineList%) DO tasklist /s \\%%a >>results. Log findstr /i iexplore. Exe results.log.

I think You May Try This: @echo off set MachineList=computers. Log FOR /f "delims= " %%a in (%MachineList%) DO CALL :GETINFO :GETINFO echo %%a >>results. Log tasklist /s \\%%a | findstr /i iexplore.

Exe >>results.log.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions