Program I run is an integrity-checker, based on the contents of a folder which contains all tracks of a given album. The program is a batch file itself, run from the command line. It is normally called by right-clicking the directory and selecting a context menu item, of which the registry entry provides the following command:
cmd /T:1F /k cd "%L" && cd .. && [command --ini location switch] "%L"
As far as I gather, it calls cmd.exe, sets the color, remains, changes to the %L% (required directory location), moves to the parent directory (required for program, I suppose), then calls the program with it's required switches, and passes %L% to the program as a variable i.e. the directory to check.
Being able to select only one file would actually make my life easier, so that I can eliminate the additional step of locating the containing folder (within MC or otherwise). Just as I love the 'expand album' feature so that I can find the corresponding album files based on a single track.
If this proves to be easy enough, I'm sure I can figure out anything else I want to do.