TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Mike Ruskai
from: Jeff Patten
date: 1994-07-21 22:43:34
subject: More REXX...

MR> One thing that is sure to make it puke is for one of the
 MR> icons to have an  invalid filename character in it, namely
 MR> the '&' character.  As we all  know, OS/2 takes that to mean
 MR> another command is being given, and a command  like "r.ico
 MR> temp.ico" doesn't mean much.

 MR> To counteract this, I would like to detect for the presence
 MR> of this  character in any filenames and inform the user that
 MR> they must be renamed.   As of right now, the only way I have
 MR> of doing this is like this: 

   If( Pos( "&", current_icon ) \= 0 ) Then ...

   "&" *is* a valid character for filenames -- you are
accessing files that include this character in their names, yes?  All you
need to do is pass the file name enclosed in double quotes (
'"'current_icon'"' if I recall correctly).

 MR> I would like to redirect the output of the SAY command to a
 MR> text file which  is referred to, but I do not know how to

   I believe the proper REXX way is to use the ADDRESS keyword, but I
haven't worked with this myself.  You could also pass the redirector
symbols by enclosing them in quotes, as with the file name problem.

Jeff

---

* Origin: Quibbler's Say (1:2410/242)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 413 430
SEEN-BY: 711/807 808 809 934 942 712/353 623 713/888 800/1
@PATH: 2410/242 165 10 116 3615/50 229/2 12/2442 711/409 54/54 711/808 809
@PATH: 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.