which system *.exe to never kill

Microsoft Windows 7 home premium
May 16, 2011 at 01:12:51
Specs: Windows 7, 533Mhz / 192 MB

C:\test>type killexe.bat
@echo off

tasklist > tasklist.txt


for /f "tokens=1,2 delims= " %%i in (tasklist.txt) do (
echo pid=%%j
rem if not %%i==notepad.exe (
if %%i==notepad.exe (
echo i=%%i
echo taskkill /F /pid %%j
taskkill /F /pid %%j
)
)
C:\test>

Bill


See More: which system *.exe to never kill

Report •

#1
May 16, 2011 at 17:29:48
This should be posted here: http://www.computing.net/forum/prog...

Report •
Related Solutions


Ask Question