replace v6 with experimental v7 code
This commit is contained in:
15
src/MpvNet/Help/ProcessHelp.cs
Normal file
15
src/MpvNet/Help/ProcessHelp.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace MpvNet.Help;
|
||||
|
||||
public static class ProcessHelp
|
||||
{
|
||||
public static void Execute(string file, string arguments = "", bool shellExecute = false)
|
||||
{
|
||||
using Process proc = new Process();
|
||||
proc.StartInfo.FileName = file;
|
||||
proc.StartInfo.Arguments = arguments;
|
||||
proc.StartInfo.UseShellExecute = shellExecute;
|
||||
proc.Start();
|
||||
}
|
||||
|
||||
public static void ShellExecute(string file, string arguments = "") => Execute(file, arguments, true);
|
||||
}
|
||||
Reference in New Issue
Block a user