Join-Path(拼接路径)时间:2023-03-09 18:42:58 $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