1. Wildcard
- Posted by Daniel Berstein <daber at PAIR.COM> Jun 14, 1998
- 658 views
Has anyone coded a file wildcard routine? Example: "*.exe" --> returns a sequence of all .exe files on the given path. Regards, Daniel Berstein daber at pair.com
2. Re: Wildcard
- Posted by isaac <isaaca at MINDSPRING.COM> Jun 14, 1998
- 630 views
At 02:20 AM 6/14/98 -0300, you wrote: >Has anyone coded a file wildcard routine? >Example: >"*.exe" --> returns a sequence of all .exe files on the given path. > >Regards, > Daniel Berstein > daber at pair.com > I haven't played with it yet, but I do have wildcard.e in my include directory. I believe it was in the Eu2.0 package, but if not I must have gotten it from one of the euphoria sites. I can e-mail it to you if you like
3. Re: Wildcard
- Posted by Ad Rienks <Ad_Rienks at COMPUSERVE.COM> Jun 14, 1998
- 635 views
Daniel, >At 02:20 AM 6/14/98 -0300, you wrote: >Has anyone coded a file >wildcard routine? >Example: >"*.exe" --> returns a sequence of >all .exe files on the given path. > >Regards, > Daniel = >Berstein > daber at pair.com > >I haven't played with it yet, but I do have wildcard.e in my >include directory. I believe it was in the Eu2.0 package, but if >not I must have gotten it from one of the euphoria sites. I can >e-mail it to you if you like = I don't know if this it what you want, but you don't need wildcard.e at a= ll if you want something like this: -- wildcard.ex include file.e sequence exe_files exe_files =3D dir("\\euphoria\\bin\\*.exe") for files =3D 1 to length(exe_files) do printf(1, "%s\n", {exe_files[files][1]}) end for while get_key() =3D -1 do = end while
4. Re: Wildcard
- Posted by Mark Watkin <koderz at MCMAIL.COM> Jun 14, 1998
- 641 views
>Has anyone coded a file wildcard routine? >Example: >"*.exe" --> returns a sequence of all .exe files on the given path. If you are to use a d = DIR(filename....... statement you don't need any wildcard rountines! It works without wildcard.e as well!!!! Around Man Mark "Ice Man" Watkin KODERZ Software Got ICQ? UIN: 9546993 http://members.xoom.com/KODERZ/ "You think life's a bitch, then you meet me!"
5. Re: Wildcard
- Posted by Daniel Berstein <daber at PAIR.COM> Jun 14, 1998
- 700 views
-----Original Message----- De: Ad Rienks <Ad_Rienks at COMPUSERVE.COM> Para: EUPHORIA at cwisserver1.mcs.muohio.edu <EUPHORIA at cwisserver1.mcs.muohio.edu> Fecha: domingo 14 de junio de 1998 7:32 Asunto: Re: Wildcard >I haven't played with it yet, but I do have wildcard.e in my >include directory. I believe it was in the Eu2.0 package, but if >not I must have gotten it from one of the euphoria sites. I can >e-mail it to you if you like I don't know if this it what you want, but you don't need wildcard.e at all if you want something like this: -- wildcard.ex include file.e sequence exe_files exe_files = dir("\\euphoria\\bin\\*.exe") for files = 1 to length(exe_files) do printf(1, "%s\n", {exe_files[files][1]}) end for while get_key() = -1 do end while Thanks Ad (and all other who replied)!! How stupid from me.... it's that simple! Regards, Daniel Berstein
6. Re: Wildcard
- Posted by Robert Craig <rds at EMAIL.MSN.COM> Jun 14, 1998
- 664 views
Daniel Berstein writes: > Thanks Ad (and all other who replied)!! How stupid from > me.... it's that simple! You weren't stupid. The use of wildcards with dir() was never documented. I knew about it, but I wasn't sure exactly how it worked since it's handled by the the WATCOM routine that Euphoria calls. I intended to investigate it more and add some notes to dir() in LIBRARY.DOC. I'll do that for the next release. I guess this is an "undocumented feature" in the positive sense. search.ex and others use euphoria\include\wildcard.e to select filenames. Regards, Rob Craig Rapid Deployment Software