Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!amdcad!ames!mailrus!tut.cis.ohio-state.edu!osu-cis!dsacg1!dsacg3!nts0302 From: nts0302@dsacg3.UUCP (Bob Fisher) Newsgroups: comp.sys.ibm.pc Subject: Re: Interactive BAT files: HOW? Keywords: Interactive, batch, 3.3 Message-ID: <1041@dsacg3.UUCP> Date: 5 Oct 88 13:21:56 GMT References: <985@esunix.UUCP> Distribution: na Organization: Defense Logistics Agency Systems Automation Center, Columbus Lines: 37 I got this off USENET about a year ago. I don't know who to give credit to. ASK is a program that displays what is on the command line and then loops until a yes or no response is entered. Test errorlevel to determine the answer. Object file is 512 bytes. Use the .BAT file sequence ask THE_QUESTION if errorlevel 1 reply_was_no You can use trailing blanks with THE_QUESTION to separate the question and answer which are on the same line. THE_QUESTION may also include screen control sequences such as setting/restoring inverse/colors. ----------------- CUT HERE AND UUDECODE --------------------- begin 644 ask.com MZ`<`Z#``M$S-(;$DOX``BQ6V`(/Z`'06@_H\=!&!PH``B_)&B`RZ@@"T"