简体   繁体   English

Windows 7 cmd不会输出文件名

[英]Windows 7 cmd wont output name of file

Why doesn't this echo the name of the file to the command prompt? 为什么这不将文件名回显到命令提示符? This reg key puts a "Copy path" option in the explorer right click context menu in Windows 7. And runs that command. 此reg键在Windows 7中的资源管理器右键单击上下文菜单中放置“复制路径”选项。并运行该命令。

[HKEY_CLASSES_ROOT\*\shell\Copy path]

[HKEY_CLASSES_ROOT\*\shell\Copy path\command]
@="cmd echo \"%1\""

The cmd prompt shows up but the name of the file is not displayed. 出现cmd提示,但未显示文件名。 Why? 为什么?

cmd's natural behavior is to terminate after it runs. cmd的自然行为是在运行后终止。 Use /k argument to keep the prompt open. 使用/ k参数使提示保持打开状态。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM