$a="d:"
$a="d:\ab"
$b="abcd"
$c="m.txt"


@($a,$b,$c) -join '\'

或者  "{0}\{1}\{2}" -f $a,$b,$c

 

结果:d:\ab\abcd\m.txt