<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>IIJIMAS</author_name>
  <author_url>https://blog.hatena.ne.jp/IIJIMAS/</author_url>
  <blog_title>IIJIMASの日記</blog_title>
  <blog_url>https://iijimas.hatenadiary.org/</blog_url>
  <categories>
    <anon>BATファイル</anon>
    <anon>自分用メモ</anon>
    <anon>Windows</anon>
  </categories>
  <description>ウィンドウズのバッチファイル(.bat)で部分文字列を取得するには… %変数名:~a,b% で変数の中身の文字列の0から始まるインデックスa番目から、長さbの部分を切り出せるということは調べるとすぐわかります・・・ たとえば &gt;set x=abcdefg &gt;echo %x:~2,4% cdef しかし、上記のaとbが数字のリテラルでないと期待した結果になりません。たとえば、以下のように記述すると・・・ &gt;set x=abcdefg &gt;set y=2 &gt;set z=4 &gt;echo %x:~%y%,%z%% abcdefgy%,4% setlocalコマンドにenabledelayedexpans…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiijimas.hatenadiary.org%2Fentry%2F20101005%2F1286289954&quot; title=&quot;文字列の部分文字列を取得するサブルーチン - IIJIMASの日記&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>2010-10-05 23:45:54</published>
  <title>文字列の部分文字列を取得するサブルーチン</title>
  <type>rich</type>
  <url>https://iijimas.hatenadiary.org/entry/20101005/1286289954</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
