Skip to content

"Open in Command Prompt" does not work if Eclipse workspace does not reside on boot volume C #1

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions