leave
leave
CC#
Created by leave on 3/29/2024 in #help
How can I remove/delete an executable (".exe") file once it ceases running or being utilized
in another process?
7 replies
CC#
Created by leave on 3/27/2024 in #help
how to load the dll for System.Management.Automation on runtime ?
using System;
using System.Management.Automation;

class PowerShhel
{
public static void Main(string[] args)
{
string command = "";

using (PowerShell powerShell = PowerShell.Create())
{
powerShell.AddScript(command);
var results = powerShell.Invoke();
}
}
}
using System;
using System.Management.Automation;

class PowerShhel
{
public static void Main(string[] args)
{
string command = "";

using (PowerShell powerShell = PowerShell.Create())
{
powerShell.AddScript(command);
var results = powerShell.Invoke();
}
}
}
4 replies