【问题标题】:What is correct name for PowerShell commandlet that replaces something替换某些东西的PowerShell命令行开关的正确名称是什么
【发布时间】:2012-02-26 13:10:28
【问题描述】:

Replace-Something 名称的唯一问题是:

WARNING: The names of some imported commands from the module 'Xxxx' include
 unapproved verbs that might make them less discoverable. To find the commands
with unapproved verbs, run the Import-Module command again with the Verbose
parameter. For a list of approved verbs, type Get-Verb.

将替换某些内容的命令行开关的正确名称是什么?

Get-Verb 似乎没有什么合适的。

【问题讨论】:

    标签: powershell


    【解决方案1】:

    “设置”怎么样。就像在 Set-Content 中一样,这意味着替换已经存在的内容。

    或者Update(数据)或Out -Force(数据),如果你写一个文件。

    【讨论】:

    • 它将替换部分内容。像 Set-ContentWithReplacedParts 之类的东西。英语不是我的母语,我想不出什么好东西。
    • @MikeChaliy 在这种情况下更新更适合。
    【解决方案2】:

    Here 是一个帖子,给出了 powershell 2.0 的已批准动词列表。我建议“更新”。

    【讨论】:

      【解决方案3】:

      运行 Get-Verb cmdlet 并使用列出的任何内容。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2018-08-26
        • 2014-05-03
        • 2013-01-26
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-02-16
        相关资源
        最近更新 更多