首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何使用-OutputMode多重PassThru

如何使用-OutputMode多重PassThru
EN

Stack Overflow用户
提问于 2022-11-01 21:47:10
回答 1查看 23关注 0票数 0

当我运行这段代码时,我一直收到一个错误。它是从这个网站http://woshub.com/find-duplicate-files-powershell/

$file_dublicates \\ Out-GridView -Title "Select“-OutputMode Multiple Remove-Item -Verbose-WhatIf

代码语言:javascript
复制
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

EN

回答 1

Stack Overflow用户

发布于 2022-11-03 20:40:47

当我将它更改为以下内容时,它就起了作用:$Links = $File_dublicates \ Out-GridView -Title "Test“-PassThru

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74282160

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档