How do I request and receive user input in a .bat and use it to run a certain program?

前端 未结 9 1968
温柔的废话
温柔的废话 2020-12-23 14:37

This is what I have so far

@echo off
:Ask
echo Would you like to use developer mode?(Y/N)
set INPUT=
set /P INPUT=Type input: %=%
If %INPUT%==\"y\" goto yes          


        
9条回答
  •  被撕碎了的回忆
    2020-12-23 15:14

    Depending on the version of Windows you might find the use of the "Choice" option to be helpful. It is not supported in most if not all x64 versions as far as I can tell. A handy substitution called Choice.vbs along with examples of use can be found on SourceForge under the name Choice.zip

提交回复
热议问题