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 pre-defined process

Description
This script will terminate the process specified in the processName variable in the script.
Language
C#.net
Minimum Version
Created By
Tristan Kirkham33080
Contributors
-
Date Created
Aug 3, 2021
Date Last Modified
Aug 3, 2021

Scripted Function (Macro) Code

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

public static class DisplayFusionFunction
{
	public static void Run()
	{
            //Change line 10 below to the desired process name to be silently killed (replace "YourProcessName.exe" with your own process to kill)
	    string processName = "YourProcessName.exe";
            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();
	}
}