1. Create a new file with the extension "txt" and enter the following: "Start cmd.exe"; then turn it off and modify its extension to "bat" and modify the file name "cmd";
2. Click on the menu below:
3. When you click "External Tools configurations ...", the following dialog box pops up:
4. Click "Program", then click "A ", then the following dialog will pop up:
5. Enter the tool's name "CMD" in the "Name" area and click on the "Main" tab:
A), in the "Location" area, click "Browse file System ..." To find the first step named "Cmd.bat", click "Open";
b), in the "WorkingDirectory" area click "Variables ...", in the pop-up window select "Project_loc", click "OK" button;
After the above two steps, the above dialog box becomes as shown:
Click on the "Apply" button and click "Run" button to complete the configuration operation.
Configuring a DOS (CMD) window in eclipse