feed input to for /f tokens delims

December 11, 2011 at 07:53:36
Specs: server 2003 / xp
for /f "tokens=1 delims=" %%A in ("c:\windows\system32\tasklist.exe") do "C:\Program Files\Internet Explorer\iexplore.exe" %%A ¶

Hi all

above is where Im at so far. I want to use the tasklist command to list all processes running and then the above line to fed in the 1st word per line in the output and essentially google each task running saving me the typing.

Thanks for reading.

See More: feed input to for /f tokens delims

Report •

December 15, 2011 at 00:02:07
for /f %%A in ('tasklist /nh') do start iexplore %%A

Report •

December 19, 2011 at 13:55:07
Thanks for your reply. I found the line below to work sucessfully though IE does slow system down for a couple of minutes.

for /f "delims=, tokens=1" %%a in ('tasklist /fo csv /nh') do start iexplore "http://www.google.com/search?q=%%~a"

Report •

Related Solutions

Ask Question