static public void exec(Dictionary <String, String> args) { if (args.ContainsKey("path")) { Console.WriteLine(FileInfoConfigMaker.makeCfg((String)args["path"])); } }
private void btn_start_Click(object sender, EventArgs e) { if (tb_path.Text == "") { MessageBox.Show("请先填写目录"); return; } if (!Directory.Exists(tb_path.Text)) { MessageBox.Show("不存在的目录"); return; } MessageBox.Show(FileInfoConfigMaker.makeCfg(tb_path.Text)); }