How to "Open Command Prompt Here" in Windows [message #659268] |
Fri, 11 March 2011 12:55  |
Eclipse User |
|
|
|
This possibly has been posted elsewhere but I didn't find it. I figured some of you may find this useful, and perhaps suggest an improvement. I found this: http://blog.eflow.org/archives/64 .. but it didn't seem very amiable to a windows setup because cmd only opens in the same window..and thus will appear in the eclipse console. Try this:
Create a file like c:\windows\system32\opencmd.bat
It should contain this one line:
@start "Command Prompt" cmd %*
Click the arrow next to the External Tools button and open the "External Tools Configuration..." ...the blog.eflow.org link details where this button is.
Right-click Program then click "New".
Click "Browse File System..." and point to the opencmd.bat file.
Set Name to "Command Prompt".
Set Working Directory to ${resource_loc}
Click Close.
Click on the arrow next to the external tools button again and click "Organize Favorites".
Click Add...
Select "Command Prompt" and click OK.
Now when you highlight a folder in your Package Explorer and click the External Tools button, it will open a command prompt with the folder as its current directory.
I wouldn't mind a solution where the option appears in the context menu of the resource, and perhaps opens in the containing folder when a file is selected, if someone wants to expand on this.
- Scott Danzig
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.28536 seconds