此脚本不起作用(注释行后面的反引号有问题)
Get-PSDrive | Where-Object {$_.Free -gt 1} |
`
#comment 1 `
ForEach-Object {$c=0}`
`
#comment 2 `
{$c = $c + 1; Write-Host $c}
但这可行
Get-PSDrive | Where-Object{$_.Free -gt 1} |
`
ForEach-Object {$c=0}`
`
{$c = $c + 1; Write-Host $c}
有什么办法解决这个问题吗?