I'm working on a batch file that sets the variables a through z and the default value should be y (for y or n). I can't find a way to loop through all the letters and set them all to "y" do loop a-z set=y
Currently, using
set a=y
set b=y
set c=y
echo.&echo.&echo Do you want to:
set /P a=Set a RESTORE point? Y/N?....
set /P b=Disable Search and Prefetch? Y/N?....
set /P c=Close all running programs? Y/N?....
FOR %%G IN (A B C D E F etc....) DO set "%%G=Y"