Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

A recent AVG and Avast antivirus update is preventing DisplayFusion 9.9 from launching on some systems.
If you're running into this issue, please update to the latest DisplayFusion 10.0 Beta.

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();
	}
}