IISController now wraps config path (in argument) with quotes to allow for paths with spaces

This commit is contained in:
Mark McDowall 2011-04-24 17:43:54 -07:00
parent 4e5c354cd6
commit 19c7702647
2 changed files with 683 additions and 192 deletions

File diff suppressed because it is too large Load Diff

View File

@ -35,7 +35,7 @@ namespace NzbDrone
IISProcess = new Process();
IISProcess.StartInfo.FileName = IISExe;
IISProcess.StartInfo.Arguments = String.Format("/config:{0} /trace:i", IISConfigPath);//"/config:"""" /trace:i";
IISProcess.StartInfo.Arguments = String.Format("/config:\"{0}\" /trace:i", IISConfigPath);//"/config:"""" /trace:i";
IISProcess.StartInfo.WorkingDirectory = Config.ProjectRoot;
IISProcess.StartInfo.UseShellExecute = false;