<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>u87</author_name>
  <author_url>https://blog.hatena.ne.jp/u87/</author_url>
  <blog_title>American Life in the Summertime</blog_title>
  <blog_url>https://u87.hatenadiary.org/</blog_url>
  <categories>
    <anon>バッチファイル</anon>
    <anon>Windows</anon>
  </categories>
  <description>バッチファイルで対象ファイルの親ディレクトリを取得したいけど、そんな便利なものはなかった。 検索していろいろ見つけたけど、自分でも作ってみた。 スマートではないと思うので、参考までに。ディレクトリ名が「\」ごとに分かれているので、そこで分割しようと考えた。 でもFORでdelimsを使って「\」で分けたとしても、それではループできない。 だとすると、CALLでサブルーチン呼んで、それを引き数とすれば、ループは可能。ってことで、「\」で区切られた文字列を「&quot;&quot;」囲みでスペース区切りにして*1、サブルーチンで処理させるやり方を考えた。 @ECHO OFF SET FULLPATH=%~p1 SET…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fu87.hatenadiary.org%2Fentry%2F20131007%2F1381118788&quot; title=&quot;バッチファイルで指定したファイルの親ディレクトリを取得する - American Life in the Summertime&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>2013-10-07 13:06:28</published>
  <title>バッチファイルで指定したファイルの親ディレクトリを取得する</title>
  <type>rich</type>
  <url>https://u87.hatenadiary.org/entry/20131007/1381118788</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
