[comp.sys.ibm.pc.misc] A couple of 4DOS questions

dhosek@linus.claremont.edu (Don Hosek) (02/17/91)

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)
<hit space on every name>
without having to enter the menu. When I use SELECT, I seldom do
anything other than hit space with every file name.

On an unrelated note (other than it's also a 4DOS Q), is there a
DESQview-specific version of the 4DOS Help program? I'd like to
have help running in its own DESQview window if it's at all
possible.

-dh

---
Don Hosek                                          | dhosek@ymir.claremont.edu
                                                   | Quixote TeX Consulting
                                                   | 714-625-0147

ff76@vaxb.acs.unt.edu (02/17/91)

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)
> <hit space on every name>
> 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).
> 
> On an unrelated note (other than it's also a 4DOS Q), is there a
> DESQview-specific version of the 4DOS Help program? I'd like to
> have help running in its own DESQview window if it's at all
> possible.
> 
> -dh
> 
> ---
> Don Hosek                                          | dhosek@ymir.claremont.edu
>                                                    | Quixote TeX Consulting
>                                                    | 714-625-0147

roy%cybrspc@cs.umn.edu (Roy M. Silvernail) (02/18/91)

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)
> <hit space on every name>
> without having to enter the menu. When I use SELECT, I seldom do
> anything other than hit space with every file name.

Try using a for construct...

FOR %i in (*.something) cmd %i

That should meet your requirements.

--
Roy M. Silvernail --  roy%cybrspc@cs.umn.edu - OR-  cybrspc!roy@cs.umn.edu
Department of redundancy department, or "Take the long way home...":
main(){system("perl -e '$x = 1/50; print \"Still just my \\$$x!\n\"'");}
               [new year, new .sig, same ol' cyberspace]

belt@freyr.pttrnl.nl (Evert van de Belt) (02/18/91)

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)
><hit space on every name>
>without having to enter the menu. When I use SELECT, I seldom do
>anything other than hit space with every file name.

How about:

FOR %%a IN (*.something) cmd %%a

That'll do the job.

Evert van de Belt
E_vdBelt @ pttrnl.nl

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\                                                          \\
\\ Flying is just knowing how to avoid hitting the ground ! \\
\\                                                          \\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

mhr@ccicpg.UUCP (MHR {who?}) (02/19/91)

In <1991Feb16.130142.1@linus.claremont.edu>, dhosek@linus.claremont.edu 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)
> <hit space on every name>
> without having to enter the menu. When I use SELECT, I seldom do
> anything other than hit space with every file name.
> 
You're kidding, right?

The point of the SELECT command is to select a group of files from a
list which (usually) contains more than the ones you want for a command
to process.

If you don't need to select a particular group of files, why do you need
the SELECT command at all?  Just use the command on your (*.something)
files and you'll get the same effect as selecting them all.

I would have thought that was obvious - maybe you've been using 4DOS too
much and forgot how the basic commands work.... :-)

-- 
Mark A. Hull-Richter    UUCP:  ccicpg!mhr       In all things, restraint,
ICL North America                               especially with respect
9801 Muirlands Blvd                             to posting articles and
Irvine, CA  92713       (714)458-7282x4539      doubly so for flames.

traub@rtf.bt.co.uk (Michael Traub) (02/19/91)

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)
>> <hit space on every name>
>> 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

jls@hsv3.UUCP (James Seidman) (02/20/91)

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)
><hit space on every name>
>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

msschaa@cs.vu.nl (Schaap MS) (02/21/91)

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)
><hit space on every name>

alias forall `for %f in (%2&) do %1 %f`

then you can say things like:

forall edit *.c *.pas


   Michael Schaap
   msschaa@cs.vu.nl

leonard@qiclab.scn.rain.com (Leonard Erickson) (02/23/91)

dhosek@linus.claremont.edu (Don Hosek) writes:

<On an unrelated note (other than it's also a 4DOS Q), is there a
<DESQview-specific version of the 4DOS Help program? I'd like to
<have help running in its own DESQview window if it's at all
<possible.

Well, since 4DOS's help is a standalone program, just run it in it's own
window! 

-- 
Leonard Erickson			leonard@qiclab.uucp
personal:	CIS: [70465,203]	70465.203@compuserve.com
business:	CIS: [76376,1107]	76376.1107@compuserve.com

kxb@math.ksu.edu (Karl Buck) (02/24/91)

leonard@qiclab.scn.rain.com (Leonard Erickson) writes:

>dhosek@linus.claremont.edu (Don Hosek) writes:

><On an unrelated note (other than it's also a 4DOS Q), is there a
><DESQview-specific version of the 4DOS Help program? I'd like to
><have help running in its own DESQview window if it's at all
><possible.

>Well, since 4DOS's help is a standalone program, just run it in it's own
>window! 

You could, but you do not need to. 4dos is DESQview aware and according to
the included compat.doc file the help command file has been "modified to 
be DESQview-aware, and should also work properly in a window smaller than
full screen". 
>-- 
>Leonard Erickson			leonard@qiclab.uucp
>personal:	CIS: [70465,203]	70465.203@compuserve.com
>business:	CIS: [76376,1107]	76376.1107@compuserve.com
--
 Karl Buck
 KSU Dept. of Mathematics               email: kxb@hilbert.math.ksu.edu 
 Manhattan, Kansas 66506                voice: (913)532-6750