Custom command in right-click menu not working

Posted by Luke on Super User See other posts from Super User or by Luke
Published on 2012-08-31T09:47:11Z Indexed on 2012/08/31 15:42 UTC
Read the original article Hit count: 185

Filed under:
|

I have added, via the registry, a right click menu option for all filetypes which is supposed to get the MD5 checksum for a file.

HKEY_CLASSES_ROOT*\shell\Checksum - Default: Get Checksum

and

HKEY_CLASSES_ROOT*\shell\Checksum\command - Default: checksum.cmd "%1"

checksum.cmd simply clears the screen, calls fciv.exe using %1 and then pauses.

Unfortunately, whilst the option "Get Checksum" appears correctly in the right click menu, it doesn't perform the right action when clicked. When I click it an "Open With" dialog opens, which is of course not what I want.

Both checksum.cmd and fciv.exe are in the PATH.

checksum.cmd:

@echo off
cls
fciv.exe %1
pause

Anybody know what's going on?

© Super User or respective owner

Related posts about windows-7

Related posts about Windows