Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!ukc!axion!rtf.bt.co.uk!traub From: traub@rtf.bt.co.uk (Michael Traub) Newsgroups: comp.sys.ibm.pc.misc Subject: Re: A couple of 4DOS questions Message-ID: <1991Feb19.123456.15064@rtf.bt.co.uk> Date: 19 Feb 91 12:34:56 GMT References: <1991Feb16.130142.1@linus.claremont.edu> <1991Feb17.123613.44571@vaxb.acs.unt.edu> Organization: British Telecom Customer Systems, Brighton, UK Lines: 35 In article <1991Feb17.123613.44571@vaxb.acs.unt.edu> ff76@vaxb.acs.unt.edu writes: >In article <1991Feb16.130142.1@linus.claremont.edu>, dhosek@linus.claremont.edu (Don Hosek) writes: >> Does anybody have a non-interactive version of the 4DOS select >> command? I would like to be able to get the equivalent of >> SELECT cmd (*.something) >> >> without having to enter the menu. When I use SELECT, I seldom do >> anything other than hit space with every file name. > >Huh? Why not use : DEL *.something > >or, for more fun : Except (Letter*.* *.BAK) DEL *.* > > (Use any command instead of DEL, with corresponding results). Except for many external Commands! What you need is a feature that is even present in command.com, the for statement: for %C in (*.*) do cmd %C Then using 4dos I have aliased this as follows: alias wild=for %%C in (%2) do %1 %%C %3 %4 %5 so I can now say (for example): wild type *.c Where type is actually an alias to a smooth scrolling type program which doesn't take wild cards. You can improve on this in any way you like and by using the 4dos @substr command you can do almost anything! Michael Traub BT Customer Systems, Brighton Systems Centre. traub@rtf.bt.co.uk