Re: Can a Reginald Rexx exec add itself to the Explorer right-click menu?
- From: Brandon Cherry <brandon@xxxxxxxxxxxxxxx>
- Date: Sun, 15 Jul 2007 14:50:18 -0400
LurfysMa wrote:
On Sun, 15 Jul 2007 01:10:57 -0400, Brandon Cherry
<brandon@xxxxxxxxxxxxxxx> wrote:
LurfysMa wrote:Using Reginald Rexx, can I write an exec that will add itself to theThough I personally use ooRexx, you can translate this example to work with your interpreter.
right-click menu in Windows Explorer and operate on the corresponding
file?
I might like to write some utilities such as making a backup copy of
the file, etc.
Sorry for the double post. I meant to ask about Reginald, not Regina.
I had been checking out the various offerings and got them mixed up.
Gender confusion.
--
Currently using Personal Rexx for Windows 3.50 from Quercus on Win XP
Run regedit and create the following key structure:
HKEY_CLASSES_ROOT\*\shell\Test\command
I am using the catchall '*'. Generally, you would set it based on the file extention ('.rex', '.cmd', '.bat', etc) and setup a class to be invoked based off the extension...on second thought, read the link posted below, way more information than I could cover in one post.
For more information than you can shake a stick at see:
<http://msdn2.microsoft.com/en-us/library/aa969383.aspx>
I'm not sure I am experienced enough with Windows to mess with the
Registry. I am worried about ending up with a machine that won't boot.
I would like to ask a few questions before I jump off this cliff ;-)
This is a smart move on your part, editing the registry can be dangerous. I would recommend you take proper precautionary procedures before engaging in such an endeavor. Exporting your registry before making a change is always a good idea and gives you a backup plan once the 'feckle matter hits the spinning blades'.
I have two machines. One running Win2K and one running WinXP.
I did run Regedit on both. Under HKEY_CLASSES_ROOT, they both have a
\shellex folder. If I open that up, I see entries for the programs
that I already have that appear in the Explorer right-click menu
(WinZip, SnagIt, Beyond Compare, and Carbonite).
But neither has a \shell. Am I to create a new folder? How is \shell
different from \shellex?
The difference in creating a COM object (wrap it in a DLL like Jeff Glat mentioned) or invoking the command line when the verb is selected.
Set the default value for the 'command' subkey to:
"C:\Program Files\ooRexx\rexx.exe" "c:\test.rex" %1
How do I do that?
After you create the 'command' subkey, click on it (regedit will show the currently selected key in the status bar in the lower left) and on the right hand side you should see a string value called '(Default)' with the value set to nothing. Double-click on it to set the value to the above (of course you will want to execute your rexx interpreter so change that part).
Create 'c:\test.rex' which has the following contents:
say arg(1)
'pause'
I know how to do that. Is 'pause' an ooRexx command?
It is not a command in ooRexx. The interpreter sends pause (quotes stripped) to the default shell to be evaluated (cmd in XP).
[snipped]
HTH!
--
Brandon Cherry
.
- Follow-Ups:
- References:
- Prev by Date: Re: Can a Reginald Rexx exec add itself to the Explorer right-click menu?
- Next by Date: Re: Can a Reginald Rexx exec add itself to the Explorer right-click menu?
- Previous by thread: Re: Can a Reginald Rexx exec add itself to the Explorer right-click menu?
- Next by thread: Re: Can a Reginald Rexx exec add itself to the Explorer right-click menu?
- Index(es):
Relevant Pages
|
Loading