Confirm

Confirm
  
            License: Freeware $0.00
            OS: MS-DOS,Win2000,Win7 x32,Win7 x64,Win98,WinServer,WinVista,WinVista x64,WinXP
            Requirements: runs under dos or windows in bat files
            Publisher: Canadian Mind Products
            Homepage: http://mindprod.com
          

ask user for yes/no confirmation.

used in a bat file to set errorlevel to 0 if user answers y,
or 1 if n.

echo do you really want to do this dangerous thing?
confirm
if errorlevel 1 goto no
goto yes

the confirm.exe version also looks for set confirm=y or set
confirm=n. if it sees it, the user does not need to key anything. it
acts as if the user had hit the y or n.


Share this post