public bool PerformeAction(PluginContext context) { if (context.GetType() != typeof(FunctionContext)) { return(false); } FunctionContext CurrentContext = (FunctionContext)context; Process process = new Process(); process.StartInfo.CreateNoWindow = _settings.GetBoolValue("Hidecmd"); process.StartInfo.UseShellExecute = !_settings.GetBoolValue("Hidecmd"); process.StartInfo.FileName = CurrentContext.FilePath; process.StartInfo.WorkingDirectory = (new FileInfo(CurrentContext.FilePath)).DirectoryName; try { process.Start(); } catch (Exception ex) { _comModule.SendMessage("log", ex.Message); } return(true); }