{
  "schemaVersion": "0.11.0",
  "canonical": "https://www.pystone.net/notes/windows-tasklist-taskkill/",
  "atlas": "https://www.pystone.net/?node=windows-tasklist-taskkill#knowledge-atlas",
  "markdown": "https://www.pystone.net/notes/windows-tasklist-taskkill.md",
  "context": "https://www.pystone.net/notes/windows-tasklist-taskkill.context.json",
  "knowledgeVersion": "224c990773de.5fa8af6e39fa",
  "build": {
    "siteCommit": "224c990773de166d23a886306577dd90379529ce",
    "notesCommit": "5fa8af6e39fa3891d1b9b4832bfa6c4e0ecaaf0a",
    "builtAt": "1970-01-01T00:00:00.000Z",
    "version": "224c990773de.5fa8af6e39fa"
  },
  "id": "note:windows-tasklist-taskkill",
  "slug": "windows-tasklist-taskkill",
  "title": "【batshell】tasklist & taskkill",
  "type": "note",
  "visibility": "public",
  "idStability": "rename-stable",
  "author": {
    "name": "Perrin Yong",
    "profile": "https://www.pystone.net/profile/"
  },
  "publisher": {
    "name": "Perrin Yong",
    "profile": "https://www.pystone.net/profile/"
  },
  "aliases": [],
  "summary": "【batshell】tasklist & taskkill",
  "contentRole": "unspecified",
  "isMoc": false,
  "mocRecognition": "none",
  "generated": false,
  "attribution": "unspecified",
  "domain": "10-计算机、信息技术与工程",
  "tags": [],
  "mocs": [],
  "contentHash": "a66ddbc3481429547568d8ff1b819b63c15ca84173f5c185dcee1c8a4a42805e",
  "assets": [],
  "headings": [
    {
      "depth": 1,
      "text": "【batshell】tasklist & taskkill",
      "anchor": "batshelltasklist-taskkill",
      "citation": "https://www.pystone.net/notes/windows-tasklist-taskkill/#batshelltasklist-taskkill"
    },
    {
      "depth": 2,
      "text": "进程查找与杀死",
      "anchor": "进程查找与杀死",
      "citation": "https://www.pystone.net/notes/windows-tasklist-taskkill/#%E8%BF%9B%E7%A8%8B%E6%9F%A5%E6%89%BE%E4%B8%8E%E6%9D%80%E6%AD%BB"
    },
    {
      "depth": 3,
      "text": "tasklist",
      "anchor": "tasklist",
      "citation": "https://www.pystone.net/notes/windows-tasklist-taskkill/#tasklist"
    },
    {
      "depth": 3,
      "text": "taskkill",
      "anchor": "taskkill",
      "citation": "https://www.pystone.net/notes/windows-tasklist-taskkill/#taskkill"
    },
    {
      "depth": 3,
      "text": "完整代码",
      "anchor": "完整代码",
      "citation": "https://www.pystone.net/notes/windows-tasklist-taskkill/#%E5%AE%8C%E6%95%B4%E4%BB%A3%E7%A0%81"
    },
    {
      "depth": 2,
      "text": "相关知识点",
      "anchor": "相关知识点",
      "citation": "https://www.pystone.net/notes/windows-tasklist-taskkill/#%E7%9B%B8%E5%85%B3%E7%9F%A5%E8%AF%86%E7%82%B9"
    },
    {
      "depth": 2,
      "text": "查询程序及命令行参数",
      "anchor": "查询程序及命令行参数",
      "citation": "https://www.pystone.net/notes/windows-tasklist-taskkill/#%E6%9F%A5%E8%AF%A2%E7%A8%8B%E5%BA%8F%E5%8F%8A%E5%91%BD%E4%BB%A4%E8%A1%8C%E5%8F%82%E6%95%B0"
    },
    {
      "depth": 2,
      "text": "Ref",
      "anchor": "ref",
      "citation": "https://www.pystone.net/notes/windows-tasklist-taskkill/#ref"
    }
  ],
  "claims": [],
  "outgoing": [],
  "incoming": [
    {
      "id": "note:software-engineering-and-quality",
      "title": "软件工程与质量保障",
      "url": "https://www.pystone.net/notes/software-engineering-and-quality/",
      "atlas": "https://www.pystone.net/?node=software-engineering-and-quality#knowledge-atlas",
      "label": "软件工程与质量保障",
      "origin": "explicit",
      "humanReviewed": true,
      "context": "CI-CD与质量保障/CI-CD工具链中的“【batshell】tasklist & taskkill”导航项",
      "citation": "https://www.pystone.net/notes/software-engineering-and-quality/#ci-cd%E4%B8%8E%E8%B4%A8%E9%87%8F%E4%BF%9D%E9%9A%9Cci-cd%E5%B7%A5%E5%85%B7%E9%93%BE"
    }
  ],
  "contentMarkdown": "# 【batshell】tasklist & taskkill\n\n﻿# 【bat/shell】tasklist & taskkill\n\n> 创建时间：2021/9/24 18:20\n\n* 进程查找与杀死\n    * tasklist\n    * taskkill\n    * 完整代码\n  * 相关知识点\n  * 查询程序及命令行参数\n  * Ref\n\n## 进程查找与杀死\n\n### tasklist\n\n  * **Image name** is the name of the executable, e.g. explorer.exe or myapp.exe\n\n```csharp\nstring a = &quot;test&quot;;\nstring tmp = &quot;est&quot;;\nstring b = &quot;t&quot; + tmp;\nConsole.WriteLine(string .ReferenceEquals(str1, str2));\n\n```\n```csharp\nstring a = &quot;test&quot;;\nstring tmp = &quot;est&quot;;\nstring b = &quot;t&quot; + tmp;\nConsole.WriteLine(string .ReferenceEquals(str1, str2));\n\n```\n```csharp\nstring a = &quot;test&quot;;\nstring tmp = &quot;est&quot;;\nstring b = &quot;t&quot; + tmp;\nConsole.WriteLine(string .ReferenceEquals(str1, str2));\n\n```\n\n### taskkill\n\n```csharp\nstring a = &quot;test&quot;;\nstring tmp = &quot;est&quot;;\nstring b = &quot;t&quot; + tmp;\nConsole.WriteLine(string .ReferenceEquals(str1, str2));\n\n```\n```csharp\nstring a = &quot;test&quot;;\nstring tmp = &quot;est&quot;;\nstring b = &quot;t&quot; + tmp;\nConsole.WriteLine(string .ReferenceEquals(str1, str2));\n\n```\n\n### 完整代码\n\n```csharp\nstring a = &quot;test&quot;;\nstring tmp = &quot;est&quot;;\nstring b = &quot;t&quot; + tmp;\nConsole.WriteLine(string .ReferenceEquals(str1, str2));\n\n```\n\n## 相关知识点\n\n1>nul 意思是不显示命令运行的正确提示\n2>nul 是不显示错误提示\n一起就是 正确错误的都不显示\n\n> 是重定向符号\n>  nul是空设备的意思\n>  把提示输入到空设备就不显示了\n\n## 查询程序及命令行参数\n\n```csharp\nstring a = &quot;test&quot;;\nstring tmp = &quot;est&quot;;\nstring b = &quot;t&quot; + tmp;\nConsole.WriteLine(string .ReferenceEquals(str1, str2));\n\n```\n```csharp\nstring a = &quot;test&quot;;\nstring tmp = &quot;est&quot;;\nstring b = &quot;t&quot; + tmp;\nConsole.WriteLine(string .ReferenceEquals(str1, str2));\n\n```\n\n## Ref\n\nhttps://blog.csdn.net/c1520006273/article/details/50539092\n"
}
