The registry code is on my homepage, use:
Code:
regval("ROOT\Folder\shell\yourcommand\")="your app path %1"
Also i don't know how to detect file copying, Maybe you could have an app that detects the copying window by it's classname, i'm not sure, never tried