如果它结束,我需要修剪路径\.
\
C:\Ravi\
我需要换到
C:\Ravi
我有一个路径不会结束的情况\(然后它必须跳过).
我尝试过.EndsWith("\"),但是当我有\\而不是时,它失败了\.
.EndsWith("\")
\\
这可以在PowerShell中完成,而无需诉诸条件吗?
powershell text-parsing filepath ends-with
ends-with ×1
filepath ×1
powershell ×1
text-parsing ×1