You can use .Replace() which does not use regular expressions like this: $Paths = "Myfolder\Mysubfolder" $Paths.replace('\','\\').
確定! 回上一頁