diff --git a/Stardust/Managers/ServiceController.cs b/Stardust/Managers/ServiceController.cs index 744b6e42..d24662e7 100644 --- a/Stardust/Managers/ServiceController.cs +++ b/Stardust/Managers/ServiceController.cs @@ -282,9 +282,16 @@ private Process RunZip(String file, String args, String workDir, ServiceInfo ser private Process RunExe(String file, String args, String workDir, ServiceInfo service) { //WriteLog("拉起进程:{0} {1}", file, args); + + var fileName = workDir.CombinePath(file).GetFullPath(); + if (!fileName.AsFile().Exists) + { + fileName = file; + } + var si = new ProcessStartInfo { - FileName = workDir.CombinePath(file).GetFullPath(), + FileName = fileName, Arguments = args, WorkingDirectory = workDir,