<p>我尝试用Python启动lpksetup.exe。
我试过:</p>
<pre><code>subprocess.call(["lpksetup.exe"], cwd="C:\\Windows\\System32\\")
</code></pre>
<pre><code>os.startfile('C:\\Windows\\System32\\lpksetup.exe')`
</code></pre>
<p>但我总是犯这样的错误:</p>
<blockquote>
<p><strong>[WinError 2] The system can not find the specified file</strong></p>
</blockquote>
<p>路径是正确的(100%确定)。当我在资源管理器中搜索文件时,它就在那里(不隐藏或隐藏),但当我通过Python打印目录中的所有文件时,文件就不在那里了:</p>
<pre><code>import os
for root, dirs, files in os.walk("C:\\Windows\\System32\\"):
for filename in files:
print(filename)
</code></pre>
<p>如何执行lpksetup.exe</p>