REXX file ext. association
Posted on 1997-09-18
I should like to do the following:
Associate a file extension with an executable so that dropping a file object on another file (object pointing to a file) with such an extension will invoke the executable using the filespecs of the dropped and "receiving" file objects as parameters.
For instance, suppose I've got the executable "CONCFILE.CMD" which contains the line "copy %1 + %2 %1". I would then want to associate this executable with a file extension, let's say ".TST", so that dropping a file object onto a file (object) having the extension ".TST" would invoke the executable, with the result that the contents of the second file are added to those of the first.
Of course, double-clicking a ".TST" file object would still have to result in the "normal" associated executable (associated using e.g. AssoEdit) being called.
Can this be done using REXX?