Five66 当前离线
中尉
(Get-Item -LiteralPath 'C:\Test2\1[2].txt').FullName|foreach-object{Resolve-Path -Relative -LiteralPath $_}复制代码
TOP
Get-Item -LiteralPath ($pwd.path+'\pp[1].txt') #注意$pwd的值 #======= [io.fileinfo]'pp[1].txt' #注意判断结果复制代码