bat的条件判断:
if "%params%" == "your value" ( echo 参数相同 ) else ( echo 参数不相同)
if "%params%" == "your value" ( goto func1 ) else ( goto func2 )
:func1
...
:func2
...
if加参数/i则不区分大小写: if /i "%params%" == "Your vaLue"
bat接收用户输入:
set /p params=请输入参数1:
echo %params%
bat当前路径:
echo %cd%