After installling portable ooRexx on a memory stick, what includes to run setupoorexx.cmd so to prepare rxenv.cmd and setenv2rxenv.cmdthe stick's currently drive letter is fixed in there. When moving the stick to another PC the drive letter may be different. That is why rxenv.cmd and setenv2rxenv.cmdwill fail, if not running setupoorexx.cmd again (and again and again when changing the PC again.) Windows Batch Scripting offers options to make it "a bit more portable."
Anonymous
The current setup is intentional. There are two objectives that may not meet the eye:
Your first point "use the same scripts for all operating systems" is not in accord with the current distributions of portable ooRexx: when comparing
setupoorexx.cmdvssetupoorexx.shnot a single line does match, in contrastsetupoorexx.rexis exatly the same, but it discerns under which OS it runs to write differentrxenv.cmdandsetenv2rxenv.cmdor suffixed ".sh" otherwise. Thus the resulting scripts differ. In addition I am not convinced, you could install portable ooRexx on a stick under Windows and use this stick later under Linux (what shows already the gazillion different distributions of portable ooRexx, me think).Your 2nd point "allow the generated scripts to be copied to other locations" makes pretty obvious that highly likely you did not take the time to consider for what
%~d0in Windows batch scrips could be used. This cryptic percent tilde returns the drive letter of the batch at runtime, thus wildly replicating the scripts to other directories of your memory stick do not harm the objective of the scripts -- but(!) the stick could be mounted to any drive letter and it would work right away, with no need to runsetupoorexxeach time you take it to another PC (and then replicate the generated scripts to all location you copied them before).Hmm, maybe I was too brief:
(Note also that the environment in the scripts created by setupoorexx.rex makes sure that that portable version of ooRexx gets also used if a non-Rexx program dynamically loads the Rexx interprter.)
Maybe I used too many words for a petty little matter. So just one..two simple question:
i) The generated scripts
rxenv.cmdandsetenv2rxenv.cmddo have a purpose -- do they still fulfil this purpose when the memory stick is plugged to another PC and mounted to a different drive letter than before?ii) is it intentional use of "portable ooRexx" to run
setupoorexx.cmdeach and every time the memory stick is plugged to another PC? In case the answer to this question is YES this feature request is obsolete.Last edit: m-stgt 2023-04-21
ad i) not necessarily, this depends on your usage pattern ;)
ad ii) yes, it is one simple command
i) was a rhetorical question only, your reply to ii) reveals a totally different "comprehension" of portable. For me it's "plug&play", not "plug&reinstall again before play". IMO this ticket may be closed.