
Quote: Originally Posted by
DocDJ
Has anyone found a way to invoke a Rexx program on Windows 7 WITHOUT prefixing it with the interpreter's name or specifying the extension (.rexx)?
In other words, can I append .rexx to the list of valid Windows executables?
As an alternative, can I compile my rexx/regina code to an .exe file?
Answered my own question: the following program, rxtest.cmd, will start as a DOS batch command, then run itself as a Regina/Rexx program in a command prompt window. It does not require typing the file extension, which must be ".cmd". No system changes are required. Sometimes known as dual-environment program.
@rem /* running a Rexx cmd
@echo off
if NOT "%1"=="1" regina rxtest.cmd 1
goto end
rem */
say "hello world"
say "first parameter must be 1. Real Rexx parameters must follow it."
/*
:end
rem */