
Re: How do I assign the value of one variable to another var
SET filename=%xfileName% DOES overwrite %filename%. If you want %xfilename% to be part of %filename%, then you should do something like
Code:
set filename=%filename% %xfilename%
or
Code:
set filename=%xfilename% %filename%
.