Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

REXX file ext. association

Posted on 1997-09-18
4
Medium Priority
?
376 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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…
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.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

609 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