Remotely/Agent.Installer.Win/Services/ProcessEx.cs
2021-07-29 07:56:15 -07:00

20 lines
509 B
C#

using System.Diagnostics;
namespace Remotely.Agent.Installer.Win.Services
{
public static class ProcessEx
{
public static Process StartHidden(string filePath, string arguments)
{
var psi = new ProcessStartInfo()
{
WindowStyle = ProcessWindowStyle.Hidden,
CreateNoWindow = true,
Arguments = arguments,
FileName = filePath
};
return Process.Start(psi);
}
}
}