<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ycloud</author_name>
  <author_url>https://blog.hatena.ne.jp/ycloud/</author_url>
  <blog_title>shikumika’s diary</blog_title>
  <blog_url>https://shikumika.org/</blog_url>
  <categories>
    <anon>Windows</anon>
  </categories>
  <description>PowerShellで、選択した複数のファイル名の一部を一括で置換するスクリプトの事例です。次のVBAでのアウトプット事例と同様の処理をPowerShellでします。 shikumika.org 内容： スクリプトの内容 実行時のイメージ（BATファイルで PowerShell スクリプトを実行の場合） なお、動作確認はWindows PowerShell 5.1です。 スクリプトの内容 次のとおりです。 # 置換前・置換後の文字列を入力 $oldText = Read-Host &quot;置換前の文字列を入力してください&quot; $newText = Read-Host &quot;置換後の文字列を入力してください…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshikumika.org%2Fentry%2Fpowershell-file-rename&quot; title=&quot;【PowerShell】選択したファイル名の一部を変更するスクリプトの事例 - shikumika’s diary&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/y/ycloud/20250713/20250713085628.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-07-13 12:30:00</published>
  <title>【PowerShell】選択したファイル名の一部を変更するスクリプトの事例</title>
  <type>rich</type>
  <url>https://shikumika.org/entry/powershell-file-rename</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
