Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Immediately kill process

Description
Prompts for a process name and then terminates it with taskkill.
Language
C#.net
Minimum Version
Created By
Karol Piechoczek
Contributors
-
Date Created
Nov 29, 2019
Date Last Modified
Nov 29, 2019

Scripted Function (Macro) Code

using System;
using System.Drawing;
using System.Diagnostics;

public static class DisplayFusionFunction
{
	public static void Run()
	{
			string processName = BFS.Dialog.GetUserInput("Kill process ", "");
            Process process = new Process();
            process.StartInfo.FileName = "taskkill.exe";
            process.StartInfo.Arguments = "/im " + processName + "* /f";
            process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
            process.StartInfo.CreateNoWindow = true;
            process.Start();
	}
}