Windows Vista is a PITA.
If you're a power developer and you don't log on with the userid "Administrator", you basically don't get much work done.
After getting "RxFuncAdd" to work by installing ooRexx V301, I started trying to use my rexx scripts like I did on WinXPPro.
At first I thought that I had a problem with the PATH setup.
Every time a rexx script tried to spawn a native executable, ".exe" or ".cmd", the script would fail with an error which I thought meant the executable could not be found (sorry I didn't write down the error code).
However I could execute these commands from the command line.
Now at the time I was using my usual userid which has "Administrator" privileges.
I subsequently determined that this is now only "Local Administrator" privileges (it's not a "Group" just weaker adminstrator privileges). I figured this out because any attempts to update my "Environment" variables ("Manage" my computer, etc...) required that I confirm a 'Windows will let you do this but only if you say "Pretty Please"' system modal popup dialog.
It turns out that rexx can't spawn "cmd.exe" without the "Super Administrator" privilege.
You can get this level of administrative privilege in three ways:
1) Run a command prompt from the "Start" menu with the "Run as Administrator" option.
2) Add "Run as Administrator" as a property of rexx.exe. Just be prepared to encounter the system modal "Pretty Please" dialog and to have every "ADDRESS CMD" spawn the executable in a separate console.
3) Log on with the "Administrator" userid. This makes every "console" an "Administrator console" without having to use "Run as Administrator".
With all of my research trying to get "rexx.exe" to "Run as Administrator" without having to do any of the above I think I saw some comment about being able to do this in a manifest. Don't quote me on this, it could just be a figment of my imagination.
Regardless, we need to find a way for "rexx.exe" to be able to execute a native module with "ADDRESS CMD" without having to log on as "Adminstrator".
Note, I've not tried to run any rexx scripts, that use "ADDRESS CMD", with a non-Administrator account. I'll add additional info when I can get around to testing this scenario.