You could use utility "choice.exe" (I think it comes with NT Resource Kit).
Here is an example of the batch file:

echo off
choice /c:YN Do you want to Continue ?
if errorlevel 2 goto end 

rem do whatever you need here
...........................................
..........................................
:end
echo End of processing.


Obviously "N" answer returns "errorlevel 2".


Igor Neyman, OCP DBA
[EMAIL PROTECTED]
  


----- Original Message ----- 
To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]>
Sent: Thursday, July 11, 2002 4:37 PM


> All,
> 
> I have a DOS batch file. In between this script, I
> would like to add user interactive question.
> 
> Ex: Do you want to Continue [Y/N]?
> 
> Once they hit "Y", it will continue rest of the batch
> file.
> 
> Could someone able to help me out as per the above
> requirement?
> 
> Thanks,
> Bob
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Sign up for SBC Yahoo! Dial - First Month Free
> http://sbc.yahoo.com
> -- 
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> -- 
> Author: Bob Robert
>   INET: [EMAIL PROTECTED]
> 
> Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
> San Diego, California        -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from).  You may
> also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Igor Neyman
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to