编译选项bat

@echo off

@echo *********************************
@echo * 1: one
@echo * 2: two
@echo * 3: three
@echo * 4: four
@echo *********************************

choice /c 1234 /t 30 /n "Select {default : 4 after 30 secs without input} ?"
if errorlevel 4 goto four
if errorlevel 3 goto three
if errorlevel 2 goto two
if errorlevel 1 goto one
goto end

:one
@echo ************one************
goto end

:two
@echo ************two************
goto end

:three
@echo ************three************
goto end

:four
@echo ************four************
goto end

:end
@echo ************end************
time /t

 

项目中Windows下选择编译方法的批处理文件摘要

你可能感兴趣的:(windows,input)