You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Open in Command Prompt" does not work if Eclipse workspace does not reside on boot volume C #1
What steps will reproduce the problem?
1. Copy Eclipse workspace to drive D:
2. Open Eclipse workspace
3. Run "Open in Command Prompt" on a project folder
What is the expected output?
Command Prompt CDed to workspace folder on D: drive
What do you see instead?
Command Prompt stuck on C: drive
What version of the product are you using? On what operating system?
1.2.0
Please provide any additional information below.
Looking at the source code the problem is probably related to the way cmd.exe
is invoked in OpenCommandPrompt.java:
Runtime.getRuntime().exec("cmd /k start cmd /k \"cd " + path + "\"")
The /D switch must be added to the cd command, i.e.:
Runtime.getRuntime().exec("cmd /k start cmd /k \"cd /D " + path + "\"")
Original issue reported on code.google.com by skra...@gmail.com on 20 Aug 2008 at 3:32
Activity