I am trying to concat a string variable into another string but I keep getting white spaces before and after the variable
objwriter.WriteLine("netsh int ipv4 Set address "+adaptername+" dhcp")
Output is the following
netsh int ipv4 Set address Wi-Fi dhcp
I have tried the following methods to concat the string also
objwriter.WriteLine("netsh int ipv4 Set address "& adaptername &" dhcp")
objwriter.WriteLine("netsh int ipv4 Set address "" & adaptername & "" dhcp")