社内SEの話

日々起きたことの記録用

2022-11-16から1日間の記事一覧

Batch rename by replacing file names

Program sample Description 1) Get-ChildItem: 2)Rename-Item -NewName : Replace the specified characters There are times when you want to batch rename files with a specific rule in a large number of files such as logs. Renaming one by one is…

【Powershell】ファイル名を置換して一括リネーム

Program サンプル 説明 1)Get-ChildItem:ファイル取得 2)Rename-Item -NewName :指定の文字を置換します ログなどの大量のファイルで特定の規則のファイル名を一括してリネームしたい時があります。 一つずつリネームするのは手間なのでPowershell を使っ…