Rename-Item: Tell about NewName parameter allow scriptBlock

オープン 初心者向け
#13,412 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@gerardrecinto がすでに取り組んでいます。

2026年12月1日 から。

  • #13422 @gerardrecinto による — オープン

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
88/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
powershell
領域
documentation

調査の方向性

reference/5.1/Microsoft.PowerShell.Management/Rename-Item.md の -NewName セクションを編集し、reference/ 配下のより新しいバージョンのフォルダーにも同じ文言が必要かどうかを確認してください(issue は 7.6 のページをリンクしています)。-NewName は文字列だけでなくスクリプト ブロックも受け入れることを明記し、issue が提供する Get-ChildItem *.txt | Rename-Item -NewName { $_.Name -replace '.txt','.log' } の例を追加してください。Markdown でパラメーターの説明と例が正しくレンダリングされたら完了です。

索引モデルが issue の本文から書いたものです。

説明

needs-triage
Type of issue

Missing information

Feedback

Please modify doc about newname.

Not only string are allowed

Get-ChildItem *.txt | Rename-Item -NewName { $_.Name -replace '.txt','.log' }
Get-ChildItem *.log

Thanks

Page URL

https://learn.microsoft.com/es-es/powershell/module/microsoft.powershell.management/rename-item?view=powershell-5.1

Content source URL

https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/5.1/Microsoft.PowerShell.Management/Rename-Item.md

Author

@sdwheeler

Platform Id

03fe7cd2-32ae-598c-cf3e-49a14abc07ee

Document Id

0e1d944b-6c55-89ed-8e9a-5e5532dba818

主要言語
PowerShell
スター
2.6k
フォーク
1.7k
平均マージ
3時間 49分
マージ済み PR(30日)
5

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MicrosoftDocs/PowerShell-Docs のほかの issue

MicrosoftDocs/PowerShell-Docs の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。