<?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>Windowsのバッチファイル(.bat)ってそのままだと、文字列の長さを求める関数もないんですね・・・以下のように文字列の長さを求めるサブルーチンを作成できます。結局ループ使わないとダメなんですね。。。GET_STRLEN.bat @echo off setlocal call :GET_STRLEN %* echo %strlen% endlocal goto :EOF ::文字長を取得する ::使用法 call :GET_STRLEN (対象の文字列) :GET_STRLEN set s=%1 set strlen=0 :LOOP_HEAD if defined s ( set s=%s…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiijimas.hatenadiary.org%2Fentry%2F20101005%2F1286287999&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:13:19</published>
  <title>文字列の長さを求めるサブルーチン</title>
  <type>rich</type>
  <url>https://iijimas.hatenadiary.org/entry/20101005/1286287999</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
