<?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のアプリ起動を自動化できるか試しています。 Windowsの場合はスタートアップに入れておけばいいという話もありますが、端末意外にも定期的に処理させたいアプリが動かせないか調べています。 まずはPythonスクリプトで起動ができるかの確認で、試しにメモ帳を起動するように試したところ、、、 subprocess.Popenで「FileNotFoundError: [WinError 2] 指定されたファイルが見つかりません。」エラーが出力されました。 以下のようなエラーです。 &gt;&gt;&gt; subprocess.Popen('C:\Windows\notepad.exe')…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcafebreak.hatenablog.com%2Fentry%2F2025%2F03%2F21%2F152547&quot; title=&quot;Python3 subprocess.PopenでFileNotFoundError: [WinError 2] 指定されたファイルが見つかりません。 - 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://cdn-ak.f.st-hatena.com/images/fotolife/m/merrywhite/20200823/20200823190229.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-03-21 15:25:47</published>
  <title>Python3 subprocess.PopenでFileNotFoundError: [WinError 2] 指定されたファイルが見つかりません。</title>
  <type>rich</type>
  <url>https://cafebreak.hatenablog.com/entry/2025/03/21/152547</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
