Insert these 3 lines after the line :CLEAN
at line 66.
set "reply=y"
set /p "reply=Clean user profile for %USERREG%? [y|n]: "
if /i not "%reply%" == "y" goto :eof
If you type y
or just press enter which implies y
, it continues the clean, else other input implies n
which goes to end of file.
1
solved How to add a yes/no response in a batch file