1
下面的脚本命令检查相匹配的命令行参数%1对固定字ALA如何匹配命令行参数在批处理文件
<code>
@echo off
set one=%1
set two=%2
If NOT "%one%"=="%one:ala=%" (echo the first argument contains the word "ala")
else (echo no matching !)
</code>
如何使用参数取代固定字“ALA” %2从命令行改为。 (因为用%2简单替换ala不起作用)。 比较参数字符串有没有更好的解决方案?