mirror of https://github.com/abpframework/abp.git
4 changed files with 28 additions and 12 deletions
@ -0,0 +1,19 @@ |
|||
using System.Diagnostics; |
|||
|
|||
namespace Volo.Abp.Cli.Utils |
|||
{ |
|||
public static class CmdHelper |
|||
{ |
|||
public static void Run(string file, string arguments) |
|||
{ |
|||
var procStartInfo = new ProcessStartInfo(file, arguments); |
|||
Process.Start(procStartInfo).WaitForExit(); |
|||
} |
|||
|
|||
public static void RunCmd(string command) |
|||
{ |
|||
var procStartInfo = new ProcessStartInfo("cmd.exe", "/C " + command); |
|||
Process.Start(procStartInfo).WaitForExit(); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue