H
Hank
I have a temp file (find.tmp) that contains the following string:
INW-SAM servername01 9999 3032 RUNNING Apr 27 17:22:07 2010
I'm trying to extract the 4th field, which is a PID, (3032) so I can
pass the PID to a kill process command. Below is the command I'm
using to trying to extract the data with:
for /f "tokens=4 delims=" %%G in (find.tmp) do @echo G: %%G
However, my logic (or lack of understanding of tokens) is wrong. Any
help is appreciated!
INW-SAM servername01 9999 3032 RUNNING Apr 27 17:22:07 2010
I'm trying to extract the 4th field, which is a PID, (3032) so I can
pass the PID to a kill process command. Below is the command I'm
using to trying to extract the data with:
for /f "tokens=4 delims=" %%G in (find.tmp) do @echo G: %%G
However, my logic (or lack of understanding of tokens) is wrong. Any
help is appreciated!