我在使用 Move-Item 轰炸的 powershell 脚本中有以下代码:不支持给定路径的格式。我似乎无法弄清楚我做错了什么。
$computer = gc env:computername
write-host "Moving archives `r`n"
gci -Path $logdir -Recurse -Include *.7z | ForEach-Object {
mi -Path $_.FullName -Destination \\storage\logs\iis\$computer\$_.Directory.Name\ -force -WhatIf
}
任何人都可以给我任何指示吗?