
批處理中的%1%2……各代表什么意思最后由 pcl_test 于 -12-8 19:30我知道的一些信息是 -P后面的數字代表COM口,我搞不懂的是為什么不是具體的數字,而這些參數(%1,%2,%3)是怎么指定變量的?請各位不吝賜教,謝謝!@echo off call aisg -p %1 -scan if errorlevel 1 goto errorInitecho Startfor /l %%v in (1,1,%2) do ( call :myProcess %%v %1 30 70if errorlevel 1 goto end):endecho.echo End exit /b 1:errorecho.echo Error in loop %Loop%type uniqueID.txtpauseexit /b 1:errorInitecho.echo Error initpauseexit /b 1rem subfuntion:myProcessset Loop=%1call aisg -p %2 -addr 1 -start -t %3if errorlevel 1 goto errorcall aisg -p %2 -addr 1 -wait -tif errorlevel 1 goto error

