<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>merrywhite</author_name>
  <author_url>https://blog.hatena.ne.jp/merrywhite/</author_url>
  <blog_title>CAFE BREAK</blog_title>
  <blog_url>https://cafebreak.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>Pythonを利用して、Windows環境で、共有フォルダのUNCパスのファイルにID、PWの認証なしでアクセスする方法について調べてみました。 Windowsはデフォルトでファイル共有が設定できますが、ファイル共有の設定時にデフォルトで設定されているeveryoneを使用するとID、PWの認証なしで接続することができます。 続いて、Pythonを利用して、共有フォルダのUNCパスのファイルを開く方法は以下で実現できます。 open('\\\\hostname or ipaddress\sharefolder\file') 合わせて、組み込み関数のopenを使用する例です。 file = op…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcafebreak.hatenablog.com%2Fentry%2F2024%2F01%2F23%2F071505&quot; title=&quot;Python 共有フォルダのUNCパスのファイルにID、PWの認証なしでアクセスする - CAFE BREAK&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>https://m.media-amazon.com/images/I/31YL6CiKCaL._SS160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-01-23 07:15:05</published>
  <title>Python 共有フォルダのUNCパスのファイルにID、PWの認証なしでアクセスする</title>
  <type>rich</type>
  <url>https://cafebreak.hatenablog.com/entry/2024/01/23/071505</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
