需注意:php中执行exe文件,其C#代码如果牵扯到求文件路径的问题请用 string exeFilePath = System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase; 用其他的php无法执行。