过程杀指定路径下的进程
create PROCEDURE [dbo].killme]
AS
BEGIN
exec master..xp_cmdshell 'del %temp%\btest.txt'
exec master..xp_cmdshell 'wmic process get name,executablepath,processid|findstr 路径关键字 >%temp%\btest.txt'
exec master..xp_cmdshell 'for /f "tokens=4" %a in (%temp%\btest.txt) do taskkill /f /pid %a'
exec master..xp_cmdshell 'del %temp%\btest.txt'
END