@echo off set /A i=1 :argactionstart if -%1-==-- goto argactionend echo parameter%i% = %1 set /A i=%i% + 1 shift goto argactionstart :argactionend