rt
请问如何在if中忽略大小写判断
我的某个批处理需要参数,而参数需要忽略大小写,比如
-help 和 -HELP 和 -heLP 等都是起一个作用
我不希望写成
iif "%1"=="-help" goto help
if "%1"=="/help" goto help
if "%1"=="-HELP" goto help
if "%1"=="/HELP" goto help
[ Last edited by tt518 on 2008-6-20 at 11:04 AM ]
请问如何在if中忽略大小写判断
我的某个批处理需要参数,而参数需要忽略大小写,比如
-help 和 -HELP 和 -heLP 等都是起一个作用
我不希望写成
iif "%1"=="-help" goto help
if "%1"=="/help" goto help
if "%1"=="-HELP" goto help
if "%1"=="/HELP" goto help
[ Last edited by tt518 on 2008-6-20 at 11:04 AM ]
