I was looking to concatenate URL based on keyword given. I passed a variable called "udefine" however, I'm not able to execute the complete concatenated URL. Code provided below.
setlocal EnableDelayedExpansion
set str1="http://myuti.eit.go2uti.com/owd/ITII/_layouts/OSSSearchResults.aspx?k="
set str2=%udefine%
set str3="^&cs=This%%20Site^&u=http%%3A%%2F%%2Fmyuti.eit.go2uti.com%%2Fowd%%2FITII"
set newvar =!%str1%%str2%%str3%!
echo %newvar%
I'm looking to concatenate str1, str2 and str3 as single URL based on input value to str2, the URL should change.