2019-12-05 20:49:20 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Wox.Plugin.SharedCommands
|
|
|
|
|
|
{
|
|
|
|
|
|
public static class ShellCommand
|
|
|
|
|
|
{
|
2019-12-09 21:23:34 +00:00
|
|
|
|
public static ProcessStartInfo SetProcessStartInfo(this string fileName, string workingDirectory="", string arguments = "", string verb = "")
|
2019-12-05 20:49:20 +00:00
|
|
|
|
{
|
|
|
|
|
|
var info = new ProcessStartInfo
|
|
|
|
|
|
{
|
2019-12-09 21:23:34 +00:00
|
|
|
|
FileName = fileName,
|
|
|
|
|
|
WorkingDirectory = workingDirectory,
|
|
|
|
|
|
Arguments = arguments,
|
|
|
|
|
|
Verb = verb
|
2019-12-05 20:49:20 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
return info;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|