i have a file b.txt with entries like :
explorer.exe pid: 3136 type: File A24: D:\ftproot\logs\tagswap
notepad.exe pid: 7732 type: File 18: D:\ftproot\logs\tagswap
I want to read each record and extract pid and kill it.
The following is only giving me only one record .
for /f "tokens=4 delims= " %%G in (c:\temp\b.txt) do (
SET KILLPIDSTR=%%G
SET KILLPIDSUBSTR=%KILLPIDSTR:~24,5%
echo %KILLPIDSUBSTR%
)
explorer.exe pid: 3136 type: File A24: D:\ftproot\logs\tagswap
notepad.exe pid: 7732 type: File 18: D:\ftproot\logs\tagswap
I want to read each record and extract pid and kill it.
The following is only giving me only one record .
for /f "tokens=4 delims= " %%G in (c:\temp\b.txt) do (
SET KILLPIDSTR=%%G
SET KILLPIDSUBSTR=%KILLPIDSTR:~24,5%
echo %KILLPIDSUBSTR%
)
My Computer
- Computer type
- PC/Desktop
- Computer Manufacturer/Model Number
- custom build
- OS
- win7-64 bit
- CPU
- Intel core i5-750
- Motherboard
- ASUS P7H55-M PROD
- Memory
- 16Gb
- Graphics Card(s)
- ATI RADEAON HD4670
- Hard Drives
- C:\ partition 1 : 100gb partition 2: 600 gb

