View Single Post
Old 06-07-2008   #9 (permalink)
Stefan Kanthak


 
 

Re: Add context menu item for background of open folder window?

"Paul Randall" <paulr901@xxxxxx> wrote:

PLEASE stop those full quotes!

Quote:

> Update:
> I thought my old 'Open Command Window Here' came as a Power Toy, but I
> don't know its vintage.
>
> My old command prompt here registry entry:
>
> Windows Registry Editor Version 5.00
>
> [HKEY_CLASSES_ROOT\Folder\shell\Command Prompt]
~~~~~~
Quote:

> @="Open Command Prompt In Folder"
>
> [HKEY_CLASSES_ROOT\Folder\shell\Command Prompt\Command]
~~~~~~
Quote:

> @="cmd.exe /k pushd %L"
>
> New Power Toy downloaded June 6, 2008 registry entry:
>
> Windows Registry Editor Version 5.00
>
> [HKEY_CLASSES_ROOT\Directory\shell\cmd]
> @="Open Command Window Here"
>
> [HKEY_CLASSES_ROOT\Directory\shell\cmd\command]
> @="cmd.exe /k \"cd %L\""
>
> I think the main difference is that my old menu item uses pushd %L to
> navigatge to the path of the folder icon that was right clicked, while
> the new power toy uses \"cd %L\" to do the same thing. My old one
> shows up as a context menu entry for .ZIP files, but the new power toy
> does not show up for .Zip files.
I've underlined the culprit. Use it together with the information I
already gave in my previous post.
Regarding "PushD": try to use the version from the power toys on a
folder you opened with \\server\share\folder (see MSKB 317379 and 156276).

And while you're there: depending on your windows version and it's
security settings the simple "cmd.exe" might run a rogue binary an
attacker has placed in the directory/drive you just want to use your
power toy.
It's better to use the version with REG_EXPAND_SZ and %COMSPEC% I
incorporated in http://home.arcor.de/skanthak/download/EXTRA-2K.INF
to create all these registry entries.

Stefan

My System SpecsSystem Spec