.Net Core程序中直接调用打开exe文件
作者:互联网
1 private void GeneratePdf() 2 { 3 var pdfGeneratorFullPath = configuration.GetSection("Exe").GetSection("ExePath").Value;//获取exe目录 4 var pdfGeneratorProcess = Process.Start(pdfGeneratorFullPath); //直接调用打开文件 5 pdfGeneratorProcess.WaitForExit();//等它执行完 6 }
标签:Core,exe,调用,pdfGeneratorFullPath,GetSection,var,Net,pdfGeneratorProcess 来源: https://www.cnblogs.com/heidashuaiGo/p/16284384.html