爲什麼-split參數的字符串需要兩個反斜槓,而-join參數的字符串只需要一個反斜槓? backtick是Powershell中的轉義字符。角色前面的反斜槓對你有什麼作用?Powershell中的反斜槓
$path = 'C:\folder\test\unit1\testing\results\report.txt'
$path -split '\\' -notlike '*test*' -join '\'
http://powershell.com/cs/blogs/tips/archive/2014/06/17/fun-with-path-names.aspx