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.
Keywords: confirm, BAT, command line, errorlevel, ask user, yes or no, batch utility, command line utility
Recent Changes: now checks for overriding SET confirm=n or SET confirm=y
Install Support: No Install Support
Supported Languages: English
Additional Requirements: runs under DOS or Windows in BAT files
if($showpadurl == true) {?>
PAD file URL: http://mindprod.com/pad/confirm.xml
} ?>
|