/// <summary>
/// 源码目录树形结构生成
/// </summary>
/// <returns></returns>
private string outputTree(){
string command = @"tree F:\test\ /f>>F:test\目录.txt";
var processInfo = new ProcessStartInfo("cmd.exe", "/S /C " + command)
{
CreateNoWindow = true,
UseShellExecute = false,
WindowStyle = ProcessWindowStyle.Hidden,
RedirectStandardOutput = true
};
var process = new System.Diagnostics.Process { StartInfo = processInfo };
process.Start();
var outpup = process.StandardOutput.ReadToEnd();
process.WaitForExit();
return outpup;
}