"Bash Here"
This happens to me many times: I was in Windows Explorer deep down in a folder structure, saw a file, and realized that I wanted to run a command line tool on that file.
What I have done in the past is to go to a command shell, and issue a series cd commands to get to the target directory and run the command line tool.
Not any more, thanks to chere ("Command prompt Here"), a newly arrived Cygwin utility. Running
[weiqi@gao] $ chere -i
installs a context menu "Bash Here" for folders in Windows Explorer. It opens a bash shell at the right directory.
Likewise, running
[weiqi@gao] $ chere -i -s cmd
installs a context menu "Command Prompt Here" that opens the CMD.EXE prompt.
[weiqi@gao] $ chere -u -s bash [weiqi@gao] $ chere -u -s cmd
uninstalls the context menus.
Re: "Bash Here"
Create a *.reg file and puts the like of the following in it. This allows you to add anything you want.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\CreateACEBuild]
@="Update Builds"
[HKEY_CLASSES_ROOT\Directory\shell\CreateACEBuild\command]
@="cmd /c create_ace_build.pl "
[HKEY_CLASSES_ROOT\Directory\shell\MakeACEroot]
@="Make ACE_ROOT"
[HKEY_CLASSES_ROOT\Directory\shell\MakeACEroot\command]
@="WScript c:\\bin\\setaceroot.vbs \"%L\""
[HKEY_CLASSES_ROOT\Directory\shell\MakeJacORBHome]
@="Make JACORB_HOME"
[HKEY_CLASSES_ROOT\Directory\shell\MakeJacORBHome\command]
@="WScript c:\\bin\\setjacorbhome.vbs \"%L\""
[HKEY_CLASSES_ROOT\Directory\shell\MakeJavaHome]
@="Make JAVA_HOME"
[HKEY_CLASSES_ROOT\Directory\shell\MakeJavaHome\command]
@="WScript c:\\bin\\setjavahome.vbs \"%L\""
[HKEY_CLASSES_ROOT\Directory\shell\MPC_vc60]
@="MPC Create VC6"
[HKEY_CLASSES_ROOT\Directory\shell\MPC_vc60\command]
@="cmd /c \"mwc.pl -type vc6 -recurse || pause\""
[HKEY_CLASSES_ROOT\Directory\shell\MPC_vc71]
@="MPC Create VC71"
[HKEY_CLASSES_ROOT\Directory\shell\MPC_vc71\command]
@="cmd /c \"mwc.pl -type vc71 -recurse || pause\""