mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
25 lines
630 B
C#
25 lines
630 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Remotely.Agent.Installer.Win.Services
|
|
{
|
|
public static class ProcessWrapper
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
}
|