<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>akira2kun</author_name>
  <author_url>https://blog.hatena.ne.jp/akira2kun/</author_url>
  <blog_title>技術とか戦略とか</blog_title>
  <blog_url>https://akira2kun.hatenablog.com/</blog_url>
  <categories>
    <anon>Windowsバッチ</anon>
  </categories>
  <description>言いたいことをまとめると、「WindowsバッチをExcelから生成するため、findstrの実行と結果判定（ERRORLEVELの判定）を１行でやりたかったができなかった。仕方ないのでfindstrと結果判定の間に特殊な記号を入れ、その記号をまとめて改行コードに置換することで対応した。」です。 これで話が通じるのであれば、以降は読まなくて良いです。 -------------------- 実務で「ファイル中に特定の文字列が存在する場合のみ、そのファイルに対して特定の処理を行う」ということをする必要が出てきました。これは、findstrとif（変数「ERRORLEVEL」を判定）を組み合わせ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakira2kun.hatenablog.com%2Fentry%2F2019%2F03%2F06%2F233303&quot; title=&quot;Windowsバッチのfindstr実行と結果判定は１行でまとめられないので代替案提示 - 技術とか戦略とか&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-03-06 23:33:03</published>
  <title>Windowsバッチのfindstr実行と結果判定は１行でまとめられないので代替案提示</title>
  <type>rich</type>
  <url>https://akira2kun.hatenablog.com/entry/2019/03/06/233303</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
