Another easy way of doing this is:
set "_args=%*"
set "_args=%_args:* =%"
echo/%_args%
Remarks:
- Does not work if first argument (%1) is 'quoted' or "double quoted"
- Does not work if any argument contains the & char
- Any extra spaces in between arguments will NOT be removed