简体   繁体   中英

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.

[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. Why?

cmd's natural behavior is to terminate after it runs. Use /k argument to keep the prompt open.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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