<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>deloreanmc12</author_name>
  <author_url>https://blog.hatena.ne.jp/deloreanmc12/</author_url>
  <blog_title>3流プログラマのメモ書き</blog_title>
  <blog_url>https://3ryupg.hatenablog.com/</blog_url>
  <categories>
    <anon>豆知識</anon>
  </categories>
  <description>Windows環境でパスが深すぎるファイルやフォルダがあると、それを削除しようとすると「ファイルを削除できません」というエラーになります。 こういう場合の対処法ですが、エクスプローラから見えるパスを短くすればいいわけです。 そのためには、ネットワークドライブが有用です。 問題のフォルダの上位のフォルダをネットワーク共有させ、そのUNCパスをネットワークドライブとしてマウントします。 そうすると、パスは必然的に短くなるためWindowsAPIからアクセス可能になり削除できます。 ちなみに、Windows環境での最大パス長(MAX_PATH)は260文字です。 (260はNULL文字やドライブレタ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F3ryupg.hatenablog.com%2Fentry%2F2012%2F12%2F05%2F003800&quot; title=&quot;パスが深すぎて削除できない場合の対処法 - 3流プログラマのメモ書き&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>2012-12-05 00:38:00</published>
  <title>パスが深すぎて削除できない場合の対処法</title>
  <type>rich</type>
  <url>https://3ryupg.hatenablog.com/entry/2012/12/05/003800</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
