Another option would be to use dos's CALL function. The CALL function
allows the batch file to run an external program and then return control to
the batch file when the program completes (exits)
The syntax would be:
CALL READFILE.EXE DIRFIL.TXT
I've never tried autoloading a data file during the call, but it should
work. You may need to "pipe" the data file into the executable like this:
CALL READFILE.EXE<DIRFIL.TXT
Jim Meagher
=====
Micro Solutions Consulting Member of The HTML Writers Guild
http://www.ezy.net/~microsol International Webmasters Association
410-543-8996 MS Site Builder Network - Level 2 member
=====
----- Original Message -----
From: raymond kornele <[log in to unmask]>
To: <[log in to unmask]>
Sent: Tuesday, September 14, 1999 9:11 PM
Subject: Re: [PCSOFT] HELP in DOS.
> From: Anil Chawla <[log in to unmask]>
> To: <[log in to unmask]>
> Sent: Monday, September 13, 1999 6:30 AM
> Subject: Re: [PCSOFT] HELP in DOS.
>
>
> >Hi Larry,
> >
> >Actually, I have to incorporate a feature to stop scrolling in a batch
> file
> >using <Ctrl S> or <Ctrl Q>. Hence, I can't pipe to "more".
> >There definately, should be some way.
> >Thanks for your help.
> >
> >** Anil Chawla **
>
> ===============
> A few years back I got some programs from
>
> TOMMY'S TOYS, BOX 11261, DENVER, CO 80211 USA
>
> Included on the disk was a file called READFILE.COM. It will read a text
> file and scroll up and down.
>
> If you can get a copy of this program you could use
>
> dir > dirfil.txt
> readfile dirfil.txt
>
> which would put the directory readout in a file and read it with
scrolling.
>
> you could add
>
> del dirfil.txt
>
> to get rid of the file once you have read it.
>
> Another solution is
>
> dir > prn
>
> which puts the directory on paper so you can read it anytime, anywhere.
>
> =====Korny=====
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
> Curious about the people moderating your
> messages? Visit our staff web site:
> http://nospin.com/pc/staff.html
>
Do you want to signoff PCSOFT or just change to
Digest mode - visit our web site:
http://nospin.com/pc/pcsoft.html
|