I have a batch-script with multiple arguments. I am reading the total count of them and then run a for loop like this:
@echo off setlocal enabledelayedexpans
If to keep the code short rather than wise, then
for %%x in (%*) do ( echo Hey %%~x )