Page 1 of 1

CONCAT OF STRINGS

Posted: 28 Nov 2006 19:25
by mhmanio
hi, im a newbie to dos scripting... is der a way i can concat strings?

ex. string01=Hello, string02=World
final_string=HelloWorld

Posted: 29 Nov 2006 19:09
by DosItHelp
mhmanio,

Try this:

Code: Select all

set string01=Hello
set string02=World
set final_string=%string01%%string02%
echo.%final_string%

DOS IT HELP? :wink:

^^

Posted: 30 Nov 2006 01:03
by mhmanio
yes.. tnx.. :D