1

多年来,我拥有以下注册表项,因此我可以通过右键单击资源管理器的目录来打开 DOS-Box。

[HKEY_CLASSES_ROOT\Folder\shell\DOS-Prompt]
"command"="cmd.exe /k pushd %L"

它确实运行到上周。现在,我变成了下面的消息,找不到原因。

This file does not have a program associated with it for performing this action.

或德语

Der Datei ist kein Programm zum Ausführen dieser Aktion zugeordnet.

程序 cmd.exe 在我的 C:\windows\system32 中。我有一个 Windows 7,因此可以使用 SHIFT+右键单击进行相同的操作。但是我的直接链接确实运行了……为什么不再运行了?

4

2 回答 2

1

注册表设置不正确。它应该如下所示。

[HKEY_CLASSES_ROOT\Folder\shell\DOS-Prompt\command]
@="cmd.exe /k pushd %L"
于 2012-11-06T04:33:33.143 回答
0

/s如果文件夹名称包含空格,请使用。

 [HKEY_CLASSES_ROOT\Folder\shell\DOS-Prompt\command]
 @="cmd.exe /s /k pushd %L"
于 2013-10-23T06:24:17.780 回答