<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>s0u</author_name>
  <author_url>https://blog.hatena.ne.jp/s0u/</author_url>
  <blog_title>ひらいて</blog_title>
  <blog_url>https://s0u.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>以前バッチの二重起動防止用にロックファイル生成するロジックを作りこんで失敗したことがあって（バッチ実行中にサーバがブルーバックなんかでリブートすると、次回起動時にファイルを手で消さなければいけなくなる）、何かもっといい方法が無いもんかねとたまに考えることがあったのだけど、今日思い出してなんとなく検索してみたらすげぇイカス方法を発見（「バッチファイルの二重起動を防止する。」）。 オリジナルの方法だと、拡張子付けずにバッチファイル実行すると拡張子無しのごみファイルが出来てしまう。几帳面に実行ファイル名を展開し、ついでに本体ロジックが括弧内というのがその後何かと面倒くさいので括弧を外し、二重起動時は…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fs0u.hatenadiary.org%2Fentry%2F20070604%2F1180983928&quot; title=&quot;バッチの二重起動防止 - ひらいて&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>2007-06-04 04:05:28</published>
  <title>バッチの二重起動防止</title>
  <type>rich</type>
  <url>https://s0u.hatenadiary.org/entry/20070604/1180983928</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
