I'm not a REXX developers so I'm not sure how to use that script.
I will like to have an script to associate in batch to some "*.zip" files to the "Zip File" WPS file type.
</silence>As a drop target?
I'm not developing the programming language Rexx too, nor the script of one of the Sudoku distributions, nor customized Rexx apps.
But I guess
ShowSub is sample code which probably uses SysFileTree() to support wildcards. In the case of ShowSub it will be used to support
one file only, without always having to type the whole name of the file. Like typing
*.PDF instead of
"List of hotels in Quito - verified reviews (concept X).PDF", if that's the only file which does match the pattern *.PDF indeed.
A simple DO-loop can be used to set the EAs for all qualifying files. The posted script requires replacing the type's name Sudoku by your "Zip File" type name. If you want CLI with wildcards, instead of a drop target, then ShowSub is a sample. Learning the syntax of DO-loops is easy for you.
FWIW: just one of the reasons to not deliver a Rexx script for Zip File types is that my copy of 7-Zip, un-OS/2'ífied Unix software, doesn't really support wildcards, and despite of having full disks I don't want to procuce a wrapper and support un-OS/2'ified Unix software. A 7-Zip wildcards wrapper, e.g. to extract all *.7Z files, would use about the same technique.<silence>