?
Solved

REXX file ext. association

Posted on 1997-09-18
4
Medium Priority
?
370 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 200 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Suggested Courses

801 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