<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>deloreanmc12</author_name>
  <author_url>https://blog.hatena.ne.jp/deloreanmc12/</author_url>
  <blog_title>3流プログラマのメモ書き</blog_title>
  <blog_url>https://3ryupg.hatenablog.com/</blog_url>
  <categories>
    <anon>Batch</anon>
  </categories>
  <description>バッチファイルで処理するときに、設定ファイルから1行ずつ読み込みたいという時があります。 DOSコマンドのFOR文でできるようです。 例えばこんな感じ。 FOR /F %%A IN (a.txt) DO ( @ECHO %%A ) ↑a.txtのファイルを読み込みます。 区切り文字は指定しないと半角スペース、全角スペース、タブとなります。 %%Aで一つ目のエントリが取得できます。 FOR /F &quot;tokens=1,3 delims=,&quot; %%A IN (a.txt) DO ( @ECHO %%A %%B ) ↑各行の1,3番目をカンマ区切りで読み込み、出力します。 (delimsで区切り文字を…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F3ryupg.hatenablog.com%2Fentry%2F2018%2F02%2F26%2F020000&quot; title=&quot;(バッチ)設定ファイルを読み込む - 3流プログラマのメモ書き&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>2018-02-26 02:00:00</published>
  <title>(バッチ)設定ファイルを読み込む</title>
  <type>rich</type>
  <url>https://3ryupg.hatenablog.com/entry/2018/02/26/020000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
