“cmd。exe /k pushd %L“不再运行”。

时间:2023-01-17 08:35:17

I have since years the following registry key, so I can open a DOS-Box by right-click on a directory of the explorer.

多年来,我有以下注册表键,因此我可以通过右键单击资源管理器的目录来打开一个dos框。

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

It did run until last week. Now, I become the following message and can't find the reason.

直到上周才停止。现在,我变成了下面的信息,找不到原因。

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

or in German

还是在德国

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

The program cmd.exe is in my C:\windows\system32. I have a Windows 7, so the same action is possible with SHIFT+right-click. But my direct link did run... Why not anymore?

程序cmd。exe在我的C:\windows\system32中。我有一个Windows 7,所以在SHIFT+右键的情况下,同样的动作也是可能的。但我的直接联系是……为什么不呢?

2 个解决方案

#1


1  

The registry setting is incorrect. It should be like below.

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

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

#2


0  

use /s if folder name contains spaces.

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

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

#1


1  

The registry setting is incorrect. It should be like below.

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

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

#2


0  

use /s if folder name contains spaces.

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

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