![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-09 02:21 |
47,811 topics / 349,895 posts / today 0 new / 48,253 members |
| DOS批处理 & 脚本技术(批处理室) » Question: how to make IF ignore case when comparing |
| Printable Version 855 / 2 |
| Floor1 tt518 | Posted 2008-06-20 10:56 |
| 初级用户 Posts 18 Credits 44 | |
|
rt
How do I make a case-insensitive comparison in if One of my batch files needs parameters, and the parameters need to ignore case, for example -help and -HELP and -heLP etc. should all have the same effect I don't want to write it like this 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 ] |
|
| Floor2 FQ | Posted 2008-06-20 11:12 |
| 社区乞丐 Posts 37 Credits -61 | |
|
I suggest the OP read the help more before asking questions
|
|
| Floor3 tt518 | Posted 2008-06-20 11:14 |
| 初级用户 Posts 18 Credits 44 | |
|
Ah, thank you very much!!! I'm a newbie, please look after me, everyone!
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |