I'm currently attempting to concatenate my command line arguments with this:
for %%a in (%*) do set "subject=%subject% %%a"
So for example if I run
my.bat subject line here
it should set my subject variable to "subject line here", preserving the spaces. However, currently after the run, my subject variable is set to the last word. I get a subject value of " here."
How to concatenate the command line arguments right?