Monday, June 01, 2009

The most useful thing I've ever found by accident

The next easy task in creating shell extensions, is add items to the context menu of file
types. A neat little trick is to add a shortcut to the command-line shell in the directory
context menu. This is done by making a small change in the Windows Registry. Simply
add a new subkey in HKEY_CLASSES_ROOT\Directory\shell. Here's .REG file that
adds a CmdHere item to the context menu for folders.
@="CMD &Prompt Here"
@="C:\\WINNT\\System32\\cmd.exe /k cd \"%1\""

I had previous written very breifly about  creating a report on disk space using WMI A much better, and very concise instruction for qu...