Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!axion!webu!pmkatz From: pmkatz@axion.bt.co.uk (Philip Katz) Newsgroups: comp.sys.ibm.pc.misc Subject: How to get a value from a .BAT file interactively? Message-ID: <1991Mar21.173724.2454@axion.bt.co.uk> Date: 21 Mar 91 17:37:24 GMT Sender: news@axion.bt.co.uk Reply-To: Katz_P_M@bt-web.bt.co.uk Organization: British Telecom Research Labs Lines: 31 Organisation: British Telecom Research Labs, Martlesham Heath, IPSWICH UK 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 : . . . ECHO Do you want to do a backup, ANSWER$ IF ANSWER$ = "N" THEN GOTO nobackup PAUSE Place a backup disk in drive A: BACKUP C:\*.* A: :nobackup . . . 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). Thanks in advance for any help. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: : Philip Katz, :: e-mail Katz_P_M@bt-web.bt.co.uk : : British Telecom Research Laboratories :: 'phone + 44 473 645672 : : RT1264, B68, Room 17, Martlesham Heath :: fax + 44 473 637550 : : Ipswich, Suffolk, England IP5 7RE :: : :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::