Solved

REXX file ext. association

Posted on 1997-09-18
4
355 Views
Last Modified: 2013-12-26
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?
0
Comment
Question by:degeus
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
timur earned 100 total points
ID: 1292071
No.  When you drop object 1 onto object 2, what you're doing
is effectively starting object 2 and passing object 1 as
a parameter.  What you want to do is to have object 2 start
object 3, and this can only happen if object 2 is programmed
to do so.  A .TST file is not a program.  You would probably
have to create a new SOM class and integrate it with the
WPS.  This could be a very powerful feature, but it would
definitely require a new WPS class, which is very hard, if not
impossible, to write in Rexx.
0
 

Author Comment

by:degeus
ID: 1292072
Mmm, I was afraid so. Thanks for confirming my suspicions, though.

0
 
LVL 1

Expert Comment

by:timur
ID: 1292073
If you do develop such a WPS class, and keep it generic enough (perhaps with a REXX interface even), it could be EXTREMELY powerful - and you might actually make some decent money selling it.  However, I know nothing about WPS programming.  Stardock might be interested in it as an extension to Object Desktop, though.
0
 

Author Comment

by:degeus
ID: 1292074
Right, perhaps I should delve deeper into WPS programming - and who knows? I might uncover undreamt of riches (I doubt it, though, not at the speed I'll be learning SOM/WPS <g>).
Thanks for the comment,

Regards,

Marcus de Geus (Delft, NL).
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
bobThere java chalenge 45 95
Expand LInux Boot partition remotly 3 102
Looking for a specific application/software 2 119
unable to delete all specified values regedit 38 717
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question