CODE: [Copy to clipboard]@echo off&setlocal if "%1"=="" echo 没有参数&goto:eof for %%a in (%*) do set /a a+=1 echo 共有%a%个参数!