4 回答

TA贡献1829条经验 获得超4个赞
我想我解决了这个问题。由于某种原因,注册表中存在第二个位置(除了存储在HKEY_CLASSES_ROOT \ Python.File \ shell \ open \ command中的文件关联所示):
[HKEY_CLASSES_ROOT\Applications\python.exe\shell\open\command]
@="\"C:\\Python25\\python.exe\" \"%1\" %*"
这似乎是我系统的控制设置。上面的注册表设置添加“%*”以将所有参数传递给python.exe(由于某种原因,它在我的注册表中丢失)。

TA贡献1777条经验 获得超10个赞
对于Windows 7上的Python 3.3,我的设置是在另一个注册表项下; 我改变的关键是让参数得到通过
HKEY_USERS\S-1-5-21-3922133726-554333396-2662258059-1000_Classes\py_auto_file\shell\open\command
是的"C:\Python\Python33\python.exe" "%1"。我只附加%*了它。钥匙的价值现在是"C:\Python\Python33\python.exe" "%1" %*。
我有几个(至少五个)其他键的值"C:\Python\Python33\python.exe" "%1",但这是我改变的那个使它工作。

TA贡献1780条经验 获得超4个赞
为了让它适合我,我不得不使用注册表路径:
HKEY_CLASSES_ROOT\py_auto_file\shell\open\command
并添加了一个 %*
添加回答
举报