我真的不明白为什么拒绝工作。批处理命令行参数匹配
@ECHO OFF
SET CURRDIR=%CD%
if [%1%]==[1] GOTO ONE
if [%1%]==[2] GOTO TWO
if [%1%]==[3] GOTO THREE
:ONE
call "%CURRDIR%\PlanningProduct.bat"
:TWO
call "%CURRDIR%\Organization.bat"
:THREE
call "%CURRDIR%\Measure.bat"
pause
我没有在命令行
I:\BatchMania>I:\BatchMania\Home.bat 1
和输出我得到的是搞笑如下如下:
Planning
Organization
Measure
Press any key to continue . . .
这很奇怪。希望永远不要写这种代码!!!
什么是您预期的输出? – MartW 2011-05-07 09:45:20