Browse Source

fix OpenCommandPrompt implementation: now works if target path is on a drive other than the current working directory

pull/32/merge
Siegfried Pammer 13 years ago
parent
commit
813ddc20e7
  1. 2
      src/Main/Base/Project/Src/Gui/Pads/ProjectBrowser/Commands/DefaultFileNodeCommands.cs

2
src/Main/Base/Project/Src/Gui/Pads/ProjectBrowser/Commands/DefaultFileNodeCommands.cs

@ -159,7 +159,7 @@ namespace ICSharpCode.SharpDevelop.Project.Commands @@ -159,7 +159,7 @@ namespace ICSharpCode.SharpDevelop.Project.Commands
fileName = Path.GetDirectoryName(fileName);
else if (!Directory.Exists(fileName))
return;
Process.Start("cmd.exe", "/k cd \"" + fileName + "\"");
Process.Start(new ProcessStartInfo("cmd.exe") { WorkingDirectory = fileName });
}
}

Loading…
Cancel
Save