Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!samsung!noose.ecn.purdue.edu!stable.ecn.purdue.edu!yorkw From: yorkw@stable.ecn.purdue.edu (Willis F York) Newsgroups: comp.sys.amiga.tech Subject: Re: Parsing filenames with blanks inside Rexx Message-ID: Date: 7 Jan 91 18:25:34 GMT References: <1400@tardis.Tymnet.COM> <1991Jan7.164643.20116@sarah.albany.edu> Sender: news@noose.ecn.purdue.edu (USENET news) Organization: Purdue University Engineering Computer Network Lines: 39 wfh58@leah.albany.edu (William F. Hammond) writes: >In article <1400@tardis.Tymnet.COM> jms@tardis.Tymnet.COM (Joe Smith) writes: >> . . . >> files=showdir(dir) >> do while words(files) > 0 >> . . . >>I'm having problem handling filenames that contain embedded blanks. >> . . . Well i missed the original post, but try "adding" a ' (single quote) at the beggining and end of every file name that gets read into the rexx program. ie. i got a program called dofor.rexx and ya'd do a line like dofor *.iff zhow it'd get all the files with .iff and do >zhow foo.iff then wait for zhow to exit,load the next ect.... but if the file name was like : > my picture.iff the thing messed up. so in the command that gets sent to Wshell i did a like like. filename.x = "'"|filename.x|"'" (I think i got the syntax above wrong...) C-ya. Send me more details and i might be able to hep. . -- yorkw@ecn.purdue.edu Willis F York ---------------------------------------------- Macintosh... Proof that a Person can use a Computer all day and still not know ANYTHING about computers.