TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Mike Ruskai
date: 1994-07-20 06:40:22
subject: More REXX...

This also involves my little icon conversion script.

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

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

'dir>checking.txt'
call SysFileSearch '&', 'checking.txt', 'badname.'
say "The following icons must be renamed."
do bad=1 to badname.0
say badname.bad
end

I would like to redirect the output of the SAY command to a text file which 
is referred to, but I do not know how to redirect the SAY command.  The 
online REXX Information only says that the "standard" rules for
redirection 
apply to the SAY command.  Well, standard rules as far as I know include 
using > and >>, which translate into a bad arithmetic attempt and the 
characters >> being printed when SAY encounters them.  So, how do I 
redirect the output of SAY to a file?  Or anything other than STDOUT.

Beyond that, is there a way to check an individual filename for the 
presence of a bad character so that it could be checked upon the conversion 
of each icon file?  Doing a directory listing of a couple thousand icons 
even on my 486DX2/66 isn't a fun wait.  I would like to have it check each 
icon just before processing, and if it contains a bad character (actually 
only the & since it is the only bad character unique to OS/2, not DOS) move 
it to a directory and notify the user that there are icons there that need 
to be renamed.

I appreciate the help.

´Mike Ruskai ³ FidoNet(1:107/634) ³ RGSNet(50:130/12) ³ OS/2Net(81:135/30)Ã
´{Team OS/2} ³ ITCnet(85:862/207) ³         TerraNet(87:908/100)          Ã


... Rush Limbaugh:  Proof that evolution works in reverse.
___ Blue Wave/QWK v2.12 OS/2
--- RG 5-31 Exp/GE 1.02+

* Origin: The Licking Factory, OS/2 in NJ! (908)636-7245 (1:107/634)
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: 107/634 677 33 3615/50 229/2 12/2442 711/409 54/54 711/808 809 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™.