很简单,只要加2个字符for /f %%i in ('ajsshow -F AJSROOT1 -f ^%%I %1') do set job_num=%%i改成for /f %%i in ('ajsshow -F AJSROOT1 -f ^%%I %1') do set/a job_num=%%i