Although we already have a high-level IDE like Eclipse, we sometimes need to use Windows command line at development time to run some separate programs. Switching between the two programs is a hassle. So eclipse provides a tool that lets us use the Windows command line in Eclipse.
First step: Set up a new external configuration tool
In Eclipse, select "Run-External tools, External tools Configurations"
Step two: Click on "New Launch Configuration"
Step three: New Configuration interface
Fourth Step: Provide detailed information on the command line configuration
Name: It's your configuration, just pick it up.
File location for Location:CMD.exe
Working Directory: The default working path after the command line is opened
Fifth step: Select the Allocate Console check box
This option is to use the Eclipse Workbench as the command line for input and output.
Sixth step: click "Run"
You will open a C: command line for the work path
Seventh step; A few simple example commands
It's so easy!
http://www.oschina.net/question/28_46291
How to use the command line in Eclipse