🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.misc
Article #8612

Re: How to get a value from a .BAT file interactively?

#8612
From: Markus Strand
Date: Sun, 24 Mar 1991 19:02
20 lines
1375 bytes
In article <1991Mar21.173724.2454@axion.bt.co.uk> Katz_P_M@bt-web.bt.co.uk writes:
>
>	I have only recently acquired a PC and am trying to get to grips
>with the lack of functionality of DOS compared with Unix, VAX/VMS etc :-(
>
>	Question : I want to read in a value in a BATch file and then make a
>decision based on that value. E.g., in pseudo-code :
...
>	Reading through the manuals I can find no way of doing this. Have I
>missed something, or is it not possible (in which case I suppose I need to
>write a C/Pascal/BASIC program to do it).

With vanilla DOS it's impossible to make an interactive batch file.
You can either write a program or get an utility that has this feature.
Almoust any batch extender has this feature. Look at simtel or funic for
batutils.


Markus Strand
mstr@vipunen.hut.fi
Technical Details
Message-ID: <1991Mar24.190214.1683@santra.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!uupsi!sunic!news.funet.fi!funic!santra!vipunen.hut.fi!mstr
References: <1991Mar21.173724.2454@axion.bt.co.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!uupsi!sunic!news.funet.fi!funic!santra!vipunen.hut.fi!mstr
From: mstr@vipunen.hut.fi (Markus Strand)
Newsgroups: comp.sys.ibm.pc.misc
Subject: Re: How to get a value from a .BAT file interactively?
Message-ID: <1991Mar24.190214.1683@santra.uucp>
Date: 24 Mar 91 19:02:14 GMT
References: <1991Mar21.173724.2454@axion.bt.co.uk>
Sender: news@santra.uucp (Cnews - USENET news system)
Reply-To: mstr@vipunen.hut.fi (Markus Strand)
Organization: Helsinki University of Technology
Lines: 20