Add Program Plugin

This commit is contained in:
qianlifeng
2014-01-04 20:26:13 +08:00
parent dc51bc39ab
commit 07d002da48
8 changed files with 213 additions and 34 deletions

View File

@@ -23,10 +23,12 @@ namespace WinAlfred.Plugin.System
Action = () =>
{
Process process = new Process();
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.WindowStyle = ProcessWindowStyle.Hidden;
startInfo.FileName = "cmd.exe";
startInfo.Arguments = "/C " + cmd;
ProcessStartInfo startInfo = new ProcessStartInfo
{
WindowStyle = ProcessWindowStyle.Normal,
FileName = "cmd.exe",
Arguments = "/C " + cmd
};
process.StartInfo = startInfo;
process.Start();
}