CONCAT OF STRINGS

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
mhmanio
Posts: 4
Joined: 06 Nov 2006 02:42

CONCAT OF STRINGS

#1 Post by mhmanio » 28 Nov 2006 19:25

hi, im a newbie to dos scripting... is der a way i can concat strings?

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

DosItHelp
Expert
Posts: 239
Joined: 18 Feb 2006 19:54

#2 Post by DosItHelp » 29 Nov 2006 19:09

mhmanio,

Try this:

Code: Select all

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

DOS IT HELP? :wink:

mhmanio
Posts: 4
Joined: 06 Nov 2006 02:42

^^

#3 Post by mhmanio » 30 Nov 2006 01:03

yes.. tnx.. :D

Post Reply