mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
20 lines
510 B
C#
20 lines
510 B
C#
using System.Diagnostics;
|
|
|
|
namespace Remotely.Agent.Installer.Win.Utilities
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
}
|