当我运行这段代码时,我一直收到一个错误。它是从这个网站http://woshub.com/find-duplicate-files-powershell/
$file_dublicates \\ Out-GridView -Title "Select“-OutputMode Multiple Remove-Item -Verbose-WhatIf
Out-GridView : Parameter set cannot be resolved using the specified named parameters.
****************** At *.ps1:17 char:20
+ ... ublicates | Out-GridView -Title "Select files" -OutputMode Multiple – ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Out-GridView], ParameterBindingException
+ FullyQualifiedErrorId : AmbiguousParameterSet,Microsoft.PowerShell.Commands.OutGridViewCommand$file_dublicates \\ Out-GridView -Title "Select“-OutputMode Multiple Remove-Item -Verbose-WhatIf
发布于 2022-11-03 20:40:47
当我将它更改为以下内容时,它就起了作用:$Links = $File_dublicates \ Out-GridView -Title "Test“-PassThru
https://stackoverflow.com/questions/74282160
复制相似问题