Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!bionet!ig!ames!vsi1!hsv3!jls From: jls@hsv3.UUCP (James Seidman) Newsgroups: comp.sys.ibm.pc.misc Subject: Re: A couple of 4DOS questions Message-ID: <7309@hsv3.UUCP> Date: 20 Feb 91 00:00:06 GMT References: <1991Feb16.130142.1@linus.claremont.edu> Reply-To: jls@hsv3.UUCP (James Seidman) Organization: Video Seven / Headland Technology Lines: 31 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. You can do something roughly equivalent by using the FOR statement. For example, rather than doing select dvi2ps (*.c) you could do this: for %file in (*.c) do dvi2ps %file The same will work under COMMAND.COM with one caveat: you have to be careful whether to use one % or two before the variable name. One is correct for use in batch files, the other for use from the command line. 4DOS doesn't care, and let's you use one or two %'s in either case. (You can, of course, just do "help for" for more information.) [Please note that I am using great restraint to avoid making disparaging remarks about people like you who use VMS machines... :) ] -- Jim Seidman (Drax), the accidental engineer. "There's a certain freedom to being completely screwed." - The Freshman UUCP: ames!vsi1!hsv3!jls Internet: hsv3.UUCP!jls@apple.com