In the spirit of Explore here, here's another registry hack from yours truly: Cmd here. This hack adds a "Cmd here" option to the context menu of all files. When chosen, it opens a command-line window in the same directory as that file. And it sets the title of the window to be the directory name, because I can. (And because having half a dozen console windows open and not being able to see which is which by looking at the title gets old fast.)
It even works on shortcuts: Right-click on your Firefox icon and choose Cmd here to instantly get a command-line window with the current directory set to C:\Program Files\Mozilla Firefox (or wherever you installed it). Smooth.
To install Cmd here, simply download this .reg file and double-click it to merge the contents into your registry. It's plain-text, so if you're interested to see how it works you can open it up.
Or, you can look here. Check out this monster of a command!
cmd /S /k "for /f "delims=" %%i in ("%1") do @title %~di%~pi"
Admittedly most of it is completely unnecessary; cmd /k will do the job just fine (or even cmd if you don't mind having Microsoft's copyright notice in your face all the time), just without the window title being changed. But hey, I need to make sure my l33t batch file skilz don't go to waste somehow.
This probably only works on reasonably recent Windows versions; it's been tested on XP, and should work on NT 4.0 and 2000 as well. But if you're still using 98, give it up already. ;-)
Why did I make this? Well, I have the Open Command Window Here extension installed, and it works fine. But I kept wanting to open a command window in the same directory as my Explorer window, without having to show the Folders pane or go up a folder. Now I just need to right-click on a file instead of a folder, and away I go.
Total waste of time, since I hardly ever visit Windows anyway these days and will thus hardly ever use this... but I can't resist a spot of registry hacking.
Copyright © 2015 BYOND. All rights reserved.