<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nacookan</author_name>
  <author_url>https://blog.hatena.ne.jp/nacookan/</author_url>
  <blog_title>今日覚えたこと</blog_title>
  <blog_url>https://nacookan.hatenadiary.org/</blog_url>
  <categories>
    <anon>VB</anon>
  </categories>
  <description>ファイルを書き込もうとしたら、他のプロセスなどにそのファイルが掴まれていて、書き込みに失敗することがある。このとき成功するまで何度もチャレンジしたい。 Dim fso As New FileSystemObject Dim t As TextStream Do On Error Resume Next Set t = fso.CreateTextFile(&quot;hoge.txt&quot;, True, False) On Error GoTo 0 If Not t Is Nothing Then Exit Do Sleep 500 Loop t.Write &quot;hello, world!&quot; t.Close …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnacookan.hatenadiary.org%2Fentry%2F20071227%2F1198730173&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-12-27 13:36:13</published>
  <title>ファイルに変更を与える際、すでにファイルが掴まれていたら何度もチャレンジする</title>
  <type>rich</type>
  <url>https://nacookan.hatenadiary.org/entry/20071227/1198730173</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
